From 87c4a319db5c62f49a01456e65b2ba3dcc36957b Mon Sep 17 00:00:00 2001 From: Tiago Schenkel Date: Wed, 20 Mar 2019 20:08:23 +0100 Subject: [PATCH] chore: enable format on save rule --- .vscode/settings.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1c7e639..8665f30 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,25 @@ // Place your settings in this file to overwrite default and user settings. { "typescript.tsdk": "node_modules/typescript/lib", - "tslint.configFile": "tslint.test.json" + "tslint.configFile": "tslint.test.json", + + // Set the default + "editor.formatOnSave": false, + + // Enable per-language + "[html]": { + "editor.formatOnSave": true + }, + + "[json]": { + "editor.formatOnSave": true + }, + + "[javascript]": { + "editor.formatOnSave": true + }, + + "[typescript]": { + "editor.formatOnSave": true + } }