Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>HCL FormatNew to Visual Studio Code? Get it now.
HCL Format

HCL Format

fredwangwang

|
40,144 installs
| (2) | Free
format HCL (HashiCorp Configuration Language)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HCL Format

HCL Format helps to format Hashicorp Configuration Language, (.tf, .hcl) files. Just the standard format documentation key binding.

HCl Format uses hclfmt. The plugin bundles a precompiled hclfmt binary for linux/windows/darwin. If you prefer to use your own compiled binary, you could change that in the configuration under hclfmt_path as well.

Configuration:

hclformat.hclfmt_path: path to the hclfmt binary

hclformat.levant_support: (true) support format HCL with embeded levant syntax

Dev Build

  1. npm install
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft