|
1 | 1 | { |
2 | | - "C_Cpp.autoAddFileAssociations": false, |
| 2 | + // Formatting / Style |
| 3 | + "editor.formatOnSave": true, |
| 4 | + "editor.detectIndentation": false, |
| 5 | + "editor.tabSize": 2, |
| 6 | + "editor.rulers": [ |
| 7 | + 120 |
| 8 | + ], |
3 | 9 | // Use CMake presets instead of manual configuration |
4 | 10 | "cmake.useCMakePresets": "always", |
5 | 11 | "cmake.configureOnOpen": false, |
6 | | - "cmake.autoReload": false, |
7 | | - "cmake.configurePreset": "gcc-RelWithDebInfo", |
8 | | - "cmake.buildPreset": "gcc-RelWithDebInfo", |
9 | | - "cmake.testPreset": "gcc-RelWithDebInfo", |
10 | | - // Disable Microsoft IntelliSense |
| 12 | + "cmake.configureOnEdit": false, |
| 13 | + "cmake.loggingLevel": "info", |
| 14 | + // Disable Microsoft's IntelliSense |
11 | 15 | "C_Cpp.intelliSenseEngine": "disabled", |
12 | | - "C_Cpp.enabled": false, |
13 | | - // clangd (see CMakePresets.json for details) |
| 16 | + "C_Cpp.autoAddFileAssociations": false, |
| 17 | + // clangd |
14 | 18 | "clangd.arguments": [ |
15 | | - "--compile-commands-dir=${workspaceFolder}/build/gcc-RelWithDebInfo", |
| 19 | + "--compile-commands-dir=build/${command:cmake.activeConfigurePresetName}", |
16 | 20 | "--header-insertion=never", |
17 | 21 | "--clang-tidy", |
18 | 22 | ], |
19 | | - // Formatting / Style |
20 | | - "editor.formatOnSave": true, |
21 | | - "editor.detectIndentation": false, |
22 | | - "editor.tabSize": 2, |
23 | | - "editor.rulers": [ |
24 | | - 120 |
25 | | - ], |
26 | 23 | "[cpp]": { |
27 | | - "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd", |
28 | | - "editor.formatOnSave": true, |
| 24 | + "editor.defaultFormatter": "xaver.clang-format" |
29 | 25 | }, |
30 | 26 | "[c]": { |
31 | | - "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd", |
32 | | - "editor.formatOnSave": true, |
| 27 | + "editor.defaultFormatter": "xaver.clang-format" |
33 | 28 | } |
34 | 29 | } |
0 commit comments