/jetbrains-plugin-st4

An intellij/jetbrains plugin for StringTemplate .st and .stg files

Primary LanguageJavaBSD 2-Clause "Simplified" LicenseBSD-2-Clause

IntelliJ Plugin for StringTemplate v4

Java CI Latest version Downloads

A plugin that adds support for StringTemplate v4 to IntelliJ-based IDEs (version 15.x and later).

It understands .stg and .st files. For example,

See the plugin page for more information.

Highlighting the target language

You can configure Template Data Languages to make the editor highlight the content around StringTemplate tags. For example, if your template is used to generate Java code, you can go to File | Settings | Languages & Frameworks | Template Data Languages and configure which language to highlight:

The editor will now highlight Java parts around ST tags:

Building and contributing

To build the plugin: gradlew buildPlugin

To run the plugin: gradlew runIde

When submitting a pull request, make sure your name is in the contributors.txt file.