Visual Studio Code

Visual Studio Code is a free cross-platform IDE by Microsoft (not to be confused with Visual Studio).

Импортирование проекта

  • Make sure the C/C++ extension is installed. You can find instructions in the official documentation.
  • На главном экране Visual Studio Code откройте корневую папку Godot с помощью 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.
  • Затем выберите Others.
  • Within the tasks.json file find the "tasks" array and add a new section to it:
  "label": "build",
  "type": "shell",
  "command": "scons",
  "group": "build",
  "args": [
    "platform=x11", // Change to your current platform
  "problemMatcher": "$msCompile"

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

Для запуска и отладки проекта необходимо создать новую конфигурацию в файле launch.json.

  • Press Ctrl + Shift + D to open the Run panel.
  • If launch.json file 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.
  • Within the launch.json file find the "configurations" array and add a new section to it:
  "name": "Launch",
  "type": "cppdbg",
  "request": "launch",
  // Change the path below to match your current platform.
  "program": "${workspaceFolder}/bin/",
  // Change the arguments below for the project you want to test with.
  // To run the project instead of editing it, remove the "--editor" argument.
  "args": [ "--editor", "--path", "path-to-your-godot-project-folder" ],
  "stopAtEntry": false,
  "cwd": "${workspaceFolder}",
  "environment": [],
  "externalConsole": true,
  "MIMode": "gdb",
  "setupCommands": [
      "description": "Enable pretty-printing for gdb",
      "text": "-enable-pretty-printing",
      "ignoreFailures": true
  "preLaunchTask": "build"

An example of a filled out launch.json.

The name under program depends on your build configuration, e.g. for 64-bit X11 platform with tools enabled.

Если у вас возникнут какие-либо проблемы, обратитесь за помощью в один из каналов сообщества Каналов сообщества Godot.