terramate-io / terramate

Terramate CLI is an open-source Infrastructure as Code (IaC) Orchestration and Code Generation tool for Terraform, OpenTofu and Terragrunt.
https://terramate.io
Mozilla Public License 2.0
3.12k stars 86 forks source link

[FEATURE] Support "Format Document" and "Format on save" in VS Code extension #1648

Open cwe1ss opened 2 months ago

cwe1ss commented 2 months ago

Is your feature request related to a problem? Please describe. When editing Terramate-files in VS Code I always have to manually run "terraform fmt" to ensure my files are formatted correctly.

Describe the solution you'd like The Terramate-extension for VS Code should support using the "Format Document" command, and also support the editor.formatOnSave property to auto-format files on save.

Describe alternatives you've considered

Additional context This hopefully might be possible now that https://github.com/terramate-io/terramate/pull/1316 is implemented