Kotlin in Gitpod
To work with Kotlin in Gitpod, you will need to properly configure your repository. Here is how to do it.
To install Kotlin in Gitpod add the following to your .gitpod.Dockerfile:
RUN brew install kotlin
A full example could look like this:
FROM gitpod/workspace-full USER gitpod RUN brew install kotlin
VS Code extensions
This extension provides Kotlin language support for Gitpod and other IDEs, with:
- Syntax highlighting
- Code snippets
- Region code folding
To get it, open Gitpod’s Extensions panel (left vertical menu), then search for “Kotlin” and install the extension by Mathias Fröhlich for your project. Next, commit the .gitpod.yml file that was automatically created (or updated) by Gitpod.
While this extension isn’t Kotlin-specific, but allows to run code snippets in many different languages, including Kotlin.
To get it, open Gitpod’s Extensions panel, then search for “Code Runner” and install it for your project.
Please use the button below to see a gitpodified Kotlin example project in Gitpod: