17. Set up the native GDScript editor
Scroll down Global Settings > General to Native GDScript Editor. These choices are stored in the project but affect PCA's GDScript Designer rather than the player's movement or rendering.
Figure 29. The native script-editor controls are on General in this release. They do not change Godot's separate script-editor preferences.
| Setting | Use it for |
|---|---|
| Show Line Numbers | Match an error report to the relevant source line. |
| Automatic Indentation | Carry suitable indentation into a new line. |
| Autocomplete | Offer available names and calls while editing. |
| Show Code Minimap | Show an overview of a longer file. |
| Indent Using Spaces | Choose spaces rather than tabs for indentation. |
| Indent Size | Set the indentation width. |
Keep a consistent indentation convention within a script. Changing the preference does not mean every existing file has been reformatted safely. Reopen the designer and check a short function before editing a long script.
These controls do not change the formatting of a script opened directly in Godot, and they are not a universal formatter for PCA Script, Lua, and BASIC. Use each language's own editor and syntax rules.
