Fork of Terraform.tmLanguage with some sweet improvements.
- Syntax highlighting for
.tf
and.tfvars
files. - Format on save using
terraform fmt
(only available in version >= 0.6.15) - Code completion for resources and data sources
- Snippets
- Having Package Control installed
- Open the palette by pressing
Ctrl+Shift+P
(Win, Linux) orCmd+Shift+P
(OS X). - Select "Package Control: Add Repository"
- Enter
https://github.com/voltechs/Terraform.sublime-syntax
- Open command palette again
- Select "Package Control: Install Package"
- Select "Terraform.sublime-syntax"
-
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/
- OS X:
-
Clone this repo:
$ git clone https://github.com/voltechs/Terraform.sublime-syntax
The defaults are available in the Terraform.sublime-settings file.
To update the completion files you will need Ruby 2.2+
- Install Ruby
bundle install
bundle exec rake completions