[vscode] Update workspace file to better respect local style
This change updates lk.code-workspace to specify * editor.detectIndentation as false, as otherwise that overrides the desired editor.tabSize setting. * editor.insertSpaces as true, since spaces are preferred over tabs. * editor.formatOnSave as false for C and C++ files, as - in the absence of a .clang-format file - the clangd extension is likely to default to choices that don't respect the local style.
This commit is contained in:
committed by
Travis Geiselbrecht
parent
87b7245a6b
commit
410eaac0c2
@@ -1,21 +1,34 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"editor.tabSize": 4,
|
// Disable auto-formatting till the project decides on a
|
||||||
"files.exclude": {
|
// machine-readable config to control it (e.g., .clang-format).
|
||||||
"**/.cache": true,
|
"[c]": {
|
||||||
"**/.clangd": true
|
"editor.formatOnSave": false,
|
||||||
}
|
},
|
||||||
},
|
"[cpp]": {
|
||||||
"extensions": {
|
"editor.formatOnSave": false,
|
||||||
"recommendations": [
|
},
|
||||||
"mkornelsen.vscode-arm64",
|
// Allows editor.tabSize to be specified (otherwise it is overridden as
|
||||||
"llvm-vs-code-extensions.vscode-clangd",
|
// auto-detected).
|
||||||
"sunshaoce.risc-v"
|
"editor.detectIndentation": false,
|
||||||
]
|
// Convert tabs to spaces.
|
||||||
}
|
"editor.insertSpaces": true,
|
||||||
}
|
"editor.tabSize": 4,
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.cache": true,
|
||||||
|
"**/.clangd": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extensions": {
|
||||||
|
"recommendations": [
|
||||||
|
"mkornelsen.vscode-arm64",
|
||||||
|
"llvm-vs-code-extensions.vscode-clangd",
|
||||||
|
"sunshaoce.risc-v"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user