From 23c9752367476da10e26dfe8ecbd0f0ce2670e41 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 29 Aug 2023 13:14:32 -0700 Subject: [PATCH] Make formatting settings in settings template apply to all filetypes (#55419) --- .vscode/settings.template.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.template.json b/.vscode/settings.template.json index 71b1986cf1a..9162a53f6b1 100644 --- a/.vscode/settings.template.json +++ b/.vscode/settings.template.json @@ -4,10 +4,11 @@ // To use the locally built compiler, after 'npm run build': // "typescript.tsdk": "built/local" - "[typescript][javascript][yaml]": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "dprint.dprint" - }, + // Enables dprint formatting on all supported files. Setting this as the + // default for all file types is safe as dprint will just ignore any file + // it doesn't support or has explicitly excluded in .dprint.jsonc. + "editor.defaultFormatter": "dprint.dprint", + "editor.formatOnSave": true, // To ignore commits listed in .git-blame-ignore-revs in GitLens: "gitlens.advanced.blame.customArguments": [