Skip to reading
Global & Project Settings

17. Set up the native GDScript editor

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

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.

Source table from 17. Set up the native GDScript editor, page 39
SettingUse it for
Show Line NumbersMatch an error report to the relevant source line.
Automatic IndentationCarry suitable indentation into a new line.
AutocompleteOffer available names and calls while editing.
Show Code MinimapShow an overview of a longer file.
Indent Using SpacesChoose spaces rather than tabs for indentation.
Indent SizeSet 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.

Page 39 of 70Permalink
Go to page