Skip to content

p3lim/sublime-terrafmt

Repository files navigation

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
  1. Install the Sublime Text Package Control plugin if you haven't already.
    • Preferences > Package Control
  2. Open up the command palette (Ctrl+Shift+P) and enter Package Control: Install Package
  3. Search for Terrafmt and hit Enter to install.
Manual installation with Git
  1. Click the Preferences > Browse Packages menu.
  2. Open up a terminal and execute the following:
    • git clone https://github.com/p3lim/sublime-terrafmt Terrafmt
  3. Restart Sublime Text.

About

Sublime Text - Format Terraform files when saving

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages