From dd33b476f887b19d84d51613d3cec227d5d9d963 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 30 Aug 2024 19:33:46 +0200 Subject: [PATCH] chore: configure terraform formatting (#6092) in the devcontainer. --- .devcontainer/devcontainer.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 27ace53d..ec72076d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,12 +5,21 @@ "vscode": { "settings": { "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file", "editor.wordWrap": "off", - "prettier.resolveGlobalModules": true + "prettier.resolveGlobalModules": true, + "[terraform]": { + "editor.defaultFormatter": "hashicorp.terraform" + }, + "[terraform-vars]": { + "editor.defaultFormatter": "hashicorp.terraform" + } }, "extensions": [ "DavidAnson.vscode-markdownlint", "EditorConfig.EditorConfig", + "HashiCorp.terraform", "esbenp.prettier-vscode", "GitHub.vscode-github-actions", "GitHub.vscode-pull-request-github",