• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Godot Engine and GDScript support plugin for IntelliJ based IDEs

GDScript plugin for IntelliJ IDEA Build Plugin Download

Screenshot

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 to build/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:

  1. git clone --branch 3.4 https://github.com/godotengine/godot.git --depth 1
  2. zip -r 3.4.zip ./godot/doc/classes/ ./godot/modules/gdscript/doc_classes/@GDScript.xml
  3. rm -rf godot/
  4. 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

  1. Build plugin from sources, download latest stable version or any GitHub Actions artifact
  2. Navigate to: Settings | Plugins | ⚙️ | Install plugin from disk...

How to fix Mixed tabs and spaces in indentation error

To prevent mixing tabs (Godot defaults) with 4-space indents (IDE defaults), add .editorconfig file to your project directory:

[*.gd]
indent_style = tab