Terrafmt
Sublime Text - Format Terraform files when saving
Details
Installs
- Total 9K
- Win 1K
- Mac 5K
- Linux 2K
| Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 4 | 0 | 0 | 11 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| Mac | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 | 3 | 1 | 2 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 2 | 2 | 1 | 1 | 2 | 0 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 2 | 1 | 1 |
| Linux | 0 | 6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 3 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Terrafmt
This plugin will automatically run terraform fmt on any Terraform file before saving.
There's also a command palette entry called Terrafmt: Format this file to manually format.
Options
Users can override the options in Packages/User/Terrafmt.sublime-settings.
This file can be opened either through the menus (Preferences > Package Settings > Terrafmt > Settings) or through the command palette (Ctrl+Shift+P) and enter Preferences: Terrafmt settings.
Installation
Using the package manager
- Install the Sublime Text Package Control plugin if you haven't already.
- Preferences > Package Control
- Open up the command palette (Ctrl+Shift+P) and enter
Package Control: Install Package - Search for
Terrafmtand hit Enter to install.
Manual installation with Git
- Click the
Preferences > Browse Packagesmenu. - Open up a terminal and execute the following:
git clone https://github.com/p3lim/sublime-terrafmt Terrafmt
- Restart Sublime Text.