Skip to main content

IntelliJ IDEA and other JetBrains IDEs

For version 2026.1.4 and later. The plugin comes with the JVM build of the server and runs it on the Java runtime of the IDE, so it needs nothing else installed.

Install​

Install it from Settings > Plugins > Marketplace, where it is called dsl-lang.

Every release also has it as dsl-intellij.zip: in Settings > Plugins, choose Install Plugin from Disk... under the gear icon.

How it works​

The plugin has no code that knows the DSL. It uses the LSP client of the IDE, which shows what the server answers: the semantic tokens as colors, the syntax errors and those against a schema, the completion of its keywords, the outline in Structure, the breadcrumbs and the folding. Until the server answers, the grammar of the VS Code extension colors comments and strings; its language configuration gives the editor its brackets, quotes and comment actions. The colors are those of Settings > Editor > Color Scheme > Language Defaults.

Android Studio and IDEs without the LSP client​

The LSP client is part of IntelliJ IDEA, WebStorm, PyCharm, GoLand, Rider and the other IDEs of JetBrains, but not of Android Studio or of an IDE built from the open source code. In those, install the server and the LSP4IJ plugin instead: in Settings > Languages & Frameworks > Language Servers add a server with the command dsl-lsp, and under Mappings > File name patterns map *.dsl to it.

Build it yourself​

./gradlew :intellij:buildPlugin

That gives editors/intellij/build/distributions/dsl-intellij.zip. ./gradlew :intellij:runIde starts an IntelliJ IDEA with the plugin, to try it without installing it.