VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

How do you run `terraform fmt` in IntelliJ? #271

Closed fubar closed 4 years ago

fubar commented 4 years ago

Missing instructions: How do I set up IntelliJ to run terraform fmt?

VladRassokhin commented 4 years ago

There's an action 'terraform fmt', you can invoke by searching in 'shift+shift' or 'cmd+shift+a' Also you can run it before commit (checkbox in commit dialog) Also 'file watcher' could be set up to run it after changes made in editor (usually on focus lose)

fubar commented 4 years ago

Got it, thanks.