Code::Blocks

Code::Blocks is a free, open source, cross platform IDE.

Creating a new project

Create a new project or select File > New > Project…. New from template window, from Projects, select Empty project, and click Go. Click Next, to pass the welcome to the new empty project wizard. Project title is the same as the folder name that Godot was cloned into. Unless you cloned the project into a folder with a different name, this will be godot. Folder to create project in is the folder you ran the Git clone command from, not the godot project folder. Confirm that the Resulting filename field will create the project file in the root of the cloned project folder. SCons and will be configured later. However, it’s worth deselecting the Create “Release” configuration option; so only a single build target is created before clicking Finish.

Configuring the build

Properties…. This is a custom Makefile property. Click OK to save the changes. Build Options…. “Make” commands tab and remove all the existing commands for all the build targets. For each build target enter the SCons command for creating the desired build in the Build project/target field. The minimum is scons. For details on the SCons build options, see Introduction to the buildsystem. It’s also useful to add the scons --clean command in the Clean project/target field to the project’s default commmands. cmd /c to iniitalize the command interpreter. Windows example: Build > Build, click the gear button, or press Ctrl + F9.

Configuring the run

SCons has successfully built the desired target, reopen the project Properties… and select the Build targets tab. In the Output filename field, browse to the bin folder and select the compiled file. Auto-generate filename prefix and Auto-generate filename extension options. Build > Run, click the green arrow button, or press Ctrl + F10. Execution working dir field can be used to test specific projects, by setting it to the folder containing the project.godot file. Second, the Build targets tab can be used to add and remove build targets for working with and creating different builds.

Adding files to the project

Add files recursively…. Open. By default, all code files are included, so simply click OK.

Code style configuration

Code style guidelines. One important difference with Godot is the use of tabs for indents. Therefore, the key default editor setting that needs to be changed in Code::Blocks is to enable tabs for indents. This setting can be found by selecting Settings > Editor. General Settings, on the Editor Settings tab, under Tab Options check Use TAB character. Workspace. If you run into any issues, ask for help in one of Godot’s community channels.