- run
make fmt
before committing
- install
check style
plugin in your IDE - import code style schema from validator resource checkstyle
- run
terraform fmt -recursive
orcd terraform && make fmt
- you can also use the
Terraform Tools
from context menu by right click on tf files, See this comment for screenshot
- use the markdown plugin from jetbrains IDE's to do the format, it enforces line wraps etc.