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:

Installing 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 Configure -> Plugins:


Then in the Marketplace tab, we have to search for korge, and then press the Install button.


After downloading, the Install button will be changed with Restart IDE. We press that button.


After installed, we have to be sure that the Korge plugin is enabled in the plugins Installed tab.


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 Next button.


Optionally, we can choose the GroupId, ArtifactId and Version for the project. Then press Next.


Now we choose the Project name and press the Finish button.


Our entrypoint is at src/commonMain/kotlin/main.kt. 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 Tasks -> korge-run -> runJvm.


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:


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