Visual Studio Code¶
Importando o projeto¶
Make sure the C/C++ extension is installed. You can find instructions in the official documentation.
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.
Then select Others.
tasks.jsonfile find the
"tasks"array and add a new section to it:
Arguments can be different based on your own setup and needs. See Introduction to the buildsystem for a full list of arguments.
Debugging the project¶
To run and debug the project you need to create a new configuration in the
Press Ctrl + Shift + D to open the Run panel.
launch.jsonfile is missing you will be prompted to create a new one.
Select C++ (GDB/LLDB). There may be another platform specific option here. If selected, adjust the configuration example provided accordingly.
launch.jsonfile find the
"configurations"array and add a new section to it:
Due to sporadic performance issues, it is recommended to use LLDB over GDB on Unix-based systems. Make sure that the CodeLLDB extension 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,
godot.x11.tools.64 for 64-bit X11 platform with
Se você se deparar com qualquer problema, peça ajuda em um dos canais da comunidade do Godot.