You can set the CityEngine preferences by clicking Edit > Preferences in the main menu or right click in the editor and click Preferences from the context menu.
You can change the following preferences under CGA Editor:
Automatically show proposals while typing | Enables or disables automatic code completion in the CGA Editor. When enabled, context-sensitive proposals are displayed automatically as you start typing CGA code. These proposals include functions, attributes, operators, and rule elements that match the current context. Code completion can be manually triggered at any time by pressing Ctrl+Space. Additionally, you can configure the delay (in milliseconds) before proposals are shown automatically. The default value is 300ms. |
Show documentation on hover and for proposals | Enables or disables code documentation on hover and for the code completion proposals. When enabled, hovering over a CGA function, operator, or attribute displays a pop-up with the corresponding CGA reference documentation. The same documentation is also shown for the code completion proposals. Note that documentation on hover is only available when the rule file contains no errors. |
Line spacing (% of font size) | Controls the line spacing in the CGA Editor. The value is defined as a percentage of the current font size and affects the vertical spacing of the code in the editor. The default value is 20%. |