From 7192e181f6005a6bc6b6d0656f219ce796674a85 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 7 Nov 2024 17:11:34 -0600 Subject: [PATCH] Disable formatOnSave/Paste, add comments to .vscode/settings --- .vscode/settings.json | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 14bcdfd..16ae4ce 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,17 +1,20 @@ - { - "files.associations": { - "dot_*rc": "shellscript", - "dot_*rc.tmpl": "shellscript", - "*.sh.tmpl": "shellscript", - ".chezmoiignore": "ignore", - "*.nu.tmpl": "nushell", - "*.json.tmpl": "json", - "*.toml.tmpl": "toml", - "*.yaml.tmpl": "yaml", - "*.cfg.tmpl": "ini", - "*bash_aliases*": "shellscript", - "*dot_profile*": "shellscript", - "*dot_gitconfig*": "ini", - } -} \ No newline at end of file + // .tmpl files are Go templates (see text/template pkg) + "files.associations": { + "dot_*rc": "shellscript", + "dot_*rc.tmpl": "shellscript", + "*.sh.tmpl": "shellscript", + ".chezmoiignore": "ignore", + "*.nu.tmpl": "nushell", + "*.json.tmpl": "json", + "*.toml.tmpl": "toml", + "*.yaml.tmpl": "yaml", + "*.cfg.tmpl": "ini", + "*bash_aliases*": "shellscript", + "*dot_profile*": "shellscript", + "*dot_gitconfig*": "ini" + }, + // Since we're using the Go template syntax, we don't want formatters to mess with it (https://github.com/microsoft/vscode/issues/35350) + "editor.formatOnSave": false, + "editor.formatOnPaste": false +}