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
- Support
bat
- 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/tmichel/sublime-terraform
- Open command palette again
- Select "Package Control: Install Package"
- Select "sublime-terraform"
-
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/tmichel/sublime-terraform
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