HCL.tmLanguage icon indicating copy to clipboard operation
HCL.tmLanguage copied to clipboard

HCL / Terraform config syntax highlighting for Sublime Text 3

HCL Syntax Highlighting And Snippets

Basic support for Hashicorp's Configuration Language .tf, .hcl , along with snippets for each of the basic Terraform resource types for Sublime Text 3.

screenshot screenshot

Installation

Using Package Control

  1. Having Package Control installed
  2. Open the palette by pressing Ctrl+Shift+P (Win, Linux) or Cmd+Shift+P (OS X).
  3. Select "Package Control: Install package"
  4. Select "HCL"

Manually

  1. Open the Sublime Text Packages folder
    • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
    • Windows: %APPDATA%/Sublime Text 3/Packages/
    • Linux (Ubuntu/Debian): ~/.config/sublime-text-3/Packages/
  2. Clone this repo

Notes:

  • This work is based of the original Terraform.tmLanguage (https://github.com/alexlouden/Terraform.tmLanguage) repo.