Game development tools for working with Godot Engine in Visual Studio Code.
IMPORTANT NOTE: Versions 1.0.0 and later of this extension only support Godot 3.2 or later.
(bold items are new in Godot Tools v2.0.0
)
.gd
) language features:
ctrl+click
on any symbol to jump to its definition or open its documentationctrl+click
on res://resource/path
linksres://resource/path
links.gd
file to the related .tscn
file (default keybind is alt+o
).tscn
and .tres
) language features:
ctrl+click
on res://resource/path
linksctrl+click
on symbols to jump to its definition or open its documentationres://resource/path
links.gdshader
) language features:
master
branch)
.vsix
file inside).To install from GitHub Releases or a development build, see Install from a VSIX in the Visual Studio Code documentation.
The extension adds a few entries to the VS Code Command Palette under "Godot Tools":
.tscn
/.gd
file.tscn
/.gd
file.tscn
/.gd
file for debuggingYou can set VS Code as your default script editor for Godot by following these steps:
/Applications/Visual Studio Code.app/Contents/MacOS/Electron
{project} --goto {file}:{line}:{col}
You can use the following settings to configure Godot Tools:
godotTools.editorPath.godot3
godotTools.editorPath.godot4
The path to the Godot editor executable. Under Mac OS, this is the executable inside of Godot.app.
godotTools.lsp.headless
When using Godot >3.6 or >4.2, Headless LSP mode is available. In Headless mode, the extension will attempt to launch a windowless instance of the Godot editor to use as its Language Server.
The debugger is for GDScript projects. To debug C# projects, use C# Tools for Godot.
To configure the GDScript debugger:
>View: Show Run and Debug
Minimal:
{
"name": "Launch",
"type": "godot",
"request": "launch"
}
Everything:
{
"name": "Launch",
"type": "godot",
"request": "launch",
"project": "${workspaceFolder}",
"address": "127.0.0.1",
"port": 6007,
"scene": "main|current|pinned|<path>",
"editor_path": "<path>",
// engine command line flags
"profiling": false,
"single_threaded_scene": false,
"debug_collisions": false,
"debug_paths": false,
"debug_navigation": false,
"debug_avoidance": false,
"debug_stringnames": false,
"frame_delay": 0,
"time_scale": 1.0,
"disable_vsync": false,
"fixed_fps": 60,
// anything else
"additional_options": ""
}
Godot's command flags are documented here: https://docs.godotengine.org/en/stable/tutorials/editor/command_line_tutorial.html
Usage
The Godot Tools extension is an open source project from the Godot organization. Feel free to open issues and create pull requests anytime.
See the full changelog for the latest changes.
see CONTRIBUTING.md