mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
d155016b0800ffec142a43d82d7d196d17747c55
Optimize images losslessly using `oxipng -o6 --strip --zopfli`
A complete set of tools to code games with the Godot game engine in Visual Studio Code.
IMPORTANT NOTE This version of plugin only support godot 3.2 and above.
Features
The extension comes with a wealth of features to make your Godot programming experience as comfortable as possible:
- Syntax highlighting for the GDScript (
.gd) language - Syntax highlighting for the
.tscnand.tresscene formats - Full Typed GDScript support
- Optional
Smart Modeto speed up dynamic typed script coding - Function definitions and documentation display on hover (see image below)
- Rich auto-completion
- Display script warnings and errors
- Ctrl-click on a variable or method call to jump to its definition
- Full documentation of the Godot engine's API supported
- Run godot project from VS Code
Available Commands
The extension adds a few entries to the VS Code Command Palette under "GodotTools":
- Open workspace with Godot editor
- Run workspace as Godot project
- List native classes of godot
Settings
Godot
If you like this extension, you can set VS Code as your default script editor for Godot by following these steps:
- Open editor settings
- Select
Text Editor > External - Make sure the
Use External Editorbox is checked - Fill
Exec Pathwith the path to your VS Code executable - Fill
Exec Flagswith{project} --goto {file}:{line}:{col}
VS Code
You can use the following settings to configure Godot Tools:
- editor_path - The absolute path to the Godot editor executable
- gdscript_lsp_server_port - The websocket server port of the GDScript language server
- check_status - Check the GDScript language server connection status
Issues and Contributions
The Godot Tools extension is an open source project of godot orgnization. Feel free to open issues and create pull requests anytime.
See the full changelog for the latest changes.
FAQ
Why failed to connect to language server?
- You may not open your project with godot editor.
- Godot 3.2 and above is required.
Why isn't intellisense showing up my script members for me?
- The GDScript is a dynamic typed script language the tool cannot infer all the variable types as you want.
- You can turn on the
Smart Modein godot editorEditor Settings > Language Serverby check theEnable Smart Resolve.
Languages
TypeScript
89.2%
GDScript
7.3%
JavaScript
2.8%
CSS
0.7%
