Official Kotlin support for Visual Studio Code and an implementation of the Language Server Protocol for the Kotlin language.
The server is based on IntelliJ IDEA and the IntelliJ IDEA Kotlin Plugin implementation.
⚠️ This extension is currently in the Alpha state ⚠️
The core implementation and overall architecture are mostly settled and stable. Upcoming releases will focus on feature completeness and stability of the existing functionality.
Quick Start
- Install the extension in Visual Studio Code.
- Open a folder with a Kotlin JVM Gradle or Maven project.
- Open any
.ktfile to activate the extension and language server.- Important: If you already have a "Kotlin by JetBrains" extension installed from GitHub, a dialog will offer to uninstall it.
Accept it and reload the window — the new
jetbrains.kotlin-serverextension cannot properly activate while the oldjetbrains.kotlinextension is present.
- Important: If you already have a "Kotlin by JetBrains" extension installed from GitHub, a dialog will offer to uninstall it.
Accept it and reload the window — the new
- Wait for project import and indexing to complete.
After that, you can start using the extension's features!
Supported Features
- Up-to-date Kotlin language versions support
- IntelliJ-powered code completion and signature help
- IntelliJ-powered diagnostics, inspections, and quick fixes for Kotlin and
kotlinxlibraries - Build system support for JVM projects: Gradle, Maven, experimental Android Gradle Plugin support
- Support for Kotlin Multiplatform (KMP) projects is coming in the future releases.
- Semantic highlighting
- Inlay hints for types and parameter names
- Navigation: definition, references, type definition, and implementation
- Call Hierarchy
- Document and workspace symbols
- Documentation navigation and hover support
- Organize imports
- Rename refactoring
- Code formatting
- Code Folding
- File templates for creating new Kotlin files
Configuration
The extension provides a number of VS Code configuration options to customize its behavior, including:
jetbrains.kotlin.hints.*to configure inlay hintsjetbrains.templates.kotlin.*to customize Kotlin file templatesintellij.buildToolto prefer a specific project importer (e.g.,mavenorgradle)
Feedback and Issues
The best way to provide feedback or report an issue is to file a bug in GitHub issues.