Skip to content

Instantly share code, notes, and snippets.

@davenicoll
Last active September 21, 2022 18:12
Show Gist options
  • Save davenicoll/12146c38266dba09c8eab1904e6a12e3 to your computer and use it in GitHub Desktop.
Save davenicoll/12146c38266dba09c8eab1904e6a12e3 to your computer and use it in GitHub Desktop.
VSCode repository specific settings for Terraform (matches terraform fmt)
# install the hashicorp terraform vscode extension, save this to .vscode/settings.json, and remove this comment line
{
"[terraform]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "hashicorp.terraform",
"editor.tabSize": 2
},
"[terraform-vars]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "hashicorp.terraform",
"editor.tabSize": 2
},
"terraform.experimentalFeatures.validateOnSave": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment