summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-12-05 16:30:17 -0600
committerChristian Breunig <christian@breunig.cc>2023-12-09 15:29:20 +0100
commitff3ecc1b4d4ede0fb4ca15484a9655c628f4354f (patch)
tree500433ee770391152f6b81dcabbbf116f175acb2 /.vscode
parent8ef7afb9a6f243bf956cce7ad09e3871e3861ef3 (diff)
downloadvyos-1x-ff3ecc1b4d4ede0fb4ca15484a9655c628f4354f.tar.gz
vyos-1x-ff3ecc1b4d4ede0fb4ca15484a9655c628f4354f.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. (cherry picked from commit c30002208d392177cb1ffc1a5c714f7ad6d573b6)
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>"
+ }
+ ],
}