Setup KorGE IntelliJ Plugin
The simplest way to start with KorGE is by using its IntelliJ plugin. The plugin works on Android Studio and IntelliJ IDEA Community and Ultimate.
Table of contents:
- Intalling KorGE IntelliJ Plugin
- Creating a new project
- Installing JetBrains Toolbox
- Suggested IntelliJ configuration
Intalling KorGE IntelliJ Plugin
First we open IntelliJ. If we don’t have it installed, check the Toolbox section. After opening IntelliJ we should see a window similar to this one:
We have to click on
Then in the
Marketplace tab, we have to search for
korge, and then press the
After downloading, the
Install button will be changed with
We press that button.
After installed, we have to be sure that the Korge
plugin is enabled in the plugins
Creating a new project
First, we open IntelliJ and press the
Create New Project button.
Then we select
Korge from the list of templates of the left, and without changing
anything else, we press the
Optionally, we can choose the GroupId, ArtifactId and Version for the project.
Now we choose the
Project name and press the
Our entrypoint is at
Unfortunately at this point we can’t use the play gutter icon. To execute
our game, we have to go to the
Gradle tab, then
Right click on the task and
Run 'project [runJvm]':
Now we have our project up and running!
Installing JetBrains Toolbox
The Toolbox application allows us to install several JetBrain-based IDEs.
You can download it here: https://www.jetbrains.com/toolbox-app/
Suggested IntelliJ configuration
I suggest you to configure IntelliJ IDEA with:
- Editor → Code Style → Kotlin → Imports → Use imports with ‘*’
- Build, Execution, Deployment → Build Tools → Gradle → Runner → Delegate IDE build/run actions to gradle and Run tests using Gradle test runner
- Editor → General → Code Completion → Match Case - NO, Show the parameter info popup in 0 ms