GDScript plugin for IntelliJ IDEA
Works with all IntelliJ-based IDEs starting from 2019.3. List of available features is here.
Usage & Development
./gradlew runIde
- run sandbox with installed plugin./gradlew test
- run all tests./gradlew buildPlugin
- build plugin distribution tobuild/distributions/intellij-gdscript.zip
./gradlew publishPlugin
- publish plugin to official JetBrains repository
How to update completion data
You need to clone the Godot Engine repository and pack the class definitions into ZIP file. Such file must be placed inside plugin resources
. ZIP structure is not important.
The following commands describes how to update version 3.4
from project directory perspective:
git clone --branch 3.4 https://github.com/godotengine/godot.git --depth 1
zip -r 3.4.zip ./godot/doc/classes/ ./godot/modules/gdscript/doc_classes/@GDScript.xml
rm -rf godot/
mv -f 3.4.zip src/main/resources/version/
New API version will be available in Settings | Languages & Frameworks | GDScript
How to update grammars with Grammar-Kit plugin
- To update parser use Generate Parser Code option on
.bnf
file - To update lexer use Run JFlex Generator option on
.flex
file
How to install plugin manually
- Build plugin from sources, download latest stable version or any GitHub Actions artifact
- Navigate to: Settings | Plugins |
⚙️ | Install plugin from disk...
Mixed tabs and spaces in indentation
error
How to fix To prevent mixing tabs (Godot defaults) with 4-space indents (IDE defaults), add .editorconfig
file to your project directory:
[*.gd]
indent_style = tab