Visual Studio Code
Make sure the C/C++ extension is installed. You can find instructions in the . Alternatively, clangd can be used instead.
From the Visual Studio Code’s main screen open the Godot root folder with File > Open Folder….
Press Ctrl + Shift + P to open the command prompt window and enter Configure Task.
- Select the Create tasks.json file from template option.
- Within the
tasks.json
file find the"tasks"
array and add a new section to it:
Linux/X11Windows
An example of a filled out tasks.json
.
Arguments can be different based on your own setup and needs. See for a full list of arguments.
Debugging the project
To run and debug the project you need to create a new configuration in the file.
Press Ctrl + Shift + D to open the Run panel.
If
launch.json
file is missing you will be prompted to create a new one.
Within the
launch.json
file find the"configurations"
array and add a new section to it:
An example of a filled out .
Note
Due to sporadic performance issues, it is recommended to use LLDB over GDB on Unix-based systems. Make sure that the is installed.
If you encounter issues with lldb, you may consider using gdb (see the X11_gdb configuration).
Do note that lldb may work better with llvm-based builds. See Compiling for X11 (Linux, *BSD) for further information.
The name under program
depends on your build configuration, e.g. godot.x11.tools.64
for 64-bit X11 platform with tools
enabled.
If you run into any issues, ask for help in one of .