Official Terramate plugin for IntelliJ IDEA and other JetBrains IDEs.
This plugin provides comprehensive support for Terramate configuration files with syntax highlighting, code completion, validation, and more through Language Server Protocol (LSP) integration.
Full syntax highlighting for all Terramate language constructs:
- Core blocks:
terramate,stack,globals,generate_hcl,generate_file,assert,output,script,vendor,sharing_backend, and more - Pro blocks:
define bundle,define component,scaffolding
When terramate-ls is installed, you get:
- Real-time validation and diagnostics
- Smart code completion
- Hover documentation
- Go to definition
- Error and warning reporting
- Bundle/Component support (depends on your
terramate-lsversion)
.tmfiles.tm.hclfiles.tmgenfiles
Install the Terramate language server:
- Official installation guide
- Or via Homebrew:
brew install terramate-io/tap/terramate
The plugin automatically detects terramate-ls in your PATH.
- Open IntelliJ IDEA
- Go to Settings/Preferences → Plugins
- Search for "Terramate"
- Click Install
- Restart the IDE
- Clone this repository
- Run
./gradlew buildPlugin - Install the plugin from disk: Settings/Preferences → Plugins → ⚙️ → Install Plugin from Disk
- Select the generated ZIP file in
build/distributions/ - Restart the IDE
Settings/Preferences → Languages & Frameworks → Terramate
| Setting | Default | Description |
|---|---|---|
| Enable Language Server | true |
Enable/disable language server integration |
| Binary Path | "" |
Custom path to terramate-ls (leave empty for auto-detection) |
| Arguments | -mode=stdio |
Command-line arguments for terramate-ls |
| Trace Level | off |
LSP trace level: off, messages, or verbose |
Auto-detect terramate-ls from PATH (Default)
No configuration needed - the plugin finds terramate-ls automatically
Custom Binary Path
Binary Path: /custom/path/to/terramate-ls
Debug Language Server Issues
Trace Level: verbose
View logs in: Help → Show Log in Finder/Explorer
- IDE: IntelliJ IDEA 2024.2+ (Community and Ultimate)
- Also supports: PyCharm, WebStorm, GoLand, and other JetBrains IDEs 2024.2+
- JDK: Java 21 or later required for development
- Terramate CLI - Terramate command-line tool
- VSCode Extension - Terramate extension for Visual Studio Code
- terramate-ls - Terramate Language Server
Apache 2.0 - See LICENSE for details.