summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-12-05 16:30:17 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-12-08 15:26:26 -0400
commitc30002208d392177cb1ffc1a5c714f7ad6d573b6 (patch)
tree9b17f82b31031521a98c5de683cc5b51c096ceaa /.vscode
parent030abbf48fd1399a30ed668f02e4ab02dbff0706 (diff)
downloadvyos-1x-c30002208d392177cb1ffc1a5c714f7ad6d573b6.tar.gz
vyos-1x-c30002208d392177cb1ffc1a5c714f7ad6d573b6.zip
git: T5803: Adjust git configuration for baseline defaults
Apply baseline defaults for `.gitattributes` and `.vscode/settings.json` for improved developer experience. The `.gitattrbutes` settings are based on: Git documentation (https://git-scm.com/docs/gitattributes#_effects) GitHub documentation (https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings) Community templates (https://github.com/gitattributes/gitattributes) Since editor-agnostic line-ending specific settings are applied to `.gitattributes`, they can be removed from `.vscode/settings.json`. The global VSCode defaults have also been removed to avoid duplication.
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/settings.json26
1 files changed, 17 insertions, 9 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
index caa87ba4a..ab3af6cf1 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,18 +1,26 @@
{
- "files.trimTrailingWhitespace": true,
- "editor.tabSize": 4,
- "editor.insertSpaces": true,
"files.insertFinalNewline": true,
- "files.eol": "\n",
- # https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers
+ "files.trimFinalNewlines": true,
+ "files.trimTrailingWhitespace": true,
+
+ // https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers
"files.associations": {
+ "*.j2": "jinja",
"*.xml.i": "xml",
"*.xml.in": "xml",
- "*.j2": "jinja",
},
- "editor.indentSize": "tabSize",
"[jinja]": {
- "editor.tabSize": 4,
"editor.wordBasedSuggestions": false
- }
+ },
+ // https://code.visualstudio.com/docs/python/settings-reference
+ "python.analysis.extraPaths": [
+ "./python"
+ ],
+ // https://help.gitkraken.com/gitlens/gitlens-settings/#autolink-settings
+ "gitlens.autolinks": [
+ {
+ "prefix": "T",
+ "url": "https://vyos.dev/T<num>"
+ }
+ ],
}