2023-07-10 03:05:34 -07:00
|
|
|
{
|
2024-03-24 19:38:29 -07:00
|
|
|
// General C/C++ settings
|
|
|
|
"C_Cpp.autoAddFileAssociations": true,
|
|
|
|
"C_Cpp.autocompleteAddParentheses": true,
|
2023-07-10 03:05:34 -07:00
|
|
|
"C_Cpp.clang_format_sortIncludes": true,
|
2024-03-24 19:38:29 -07:00
|
|
|
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
|
|
|
|
"C_Cpp.configurationWarnings": "enabled",
|
|
|
|
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": false,
|
|
|
|
"C_Cpp.default.cStandard": "c11",
|
2024-08-27 19:49:56 -07:00
|
|
|
"C_Cpp.default.compilerPath": "/usr/bin/gcc",
|
2024-03-24 19:38:29 -07:00
|
|
|
"C_Cpp.default.cppStandard": "c++11",
|
|
|
|
"C_Cpp.default.enableConfigurationSquiggles": true,
|
|
|
|
"C_Cpp.errorSquiggles": "enabledIfIncludesResolve",
|
|
|
|
"C_Cpp.formatting": "default",
|
|
|
|
"C_Cpp.loggingLevel": "Debug",
|
2023-07-10 03:05:34 -07:00
|
|
|
"C_Cpp.vcFormat.indent.caseContentsWhenBlock": true,
|
2024-03-24 19:38:29 -07:00
|
|
|
"C_Cpp.vcFormat.indent.namespaceContents": false,
|
|
|
|
"C_Cpp.vcFormat.indent.preserveComments": true,
|
2023-07-10 03:05:34 -07:00
|
|
|
"C_Cpp.vcFormat.space.pointerReferenceAlignment": "right",
|
2024-03-24 19:38:29 -07:00
|
|
|
// CMake integration settings
|
|
|
|
"cmake.autoSelectActiveFolder": false,
|
|
|
|
"cmake.configureOnEdit": false,
|
|
|
|
"cmake.configureOnOpen": false,
|
|
|
|
"cmake.cmakePath": "/usr/bin/cmake",
|
|
|
|
"cmake.sourceDirectory": "${workspaceFolder}/",
|
|
|
|
// Language-specific settings
|
2023-07-10 03:05:34 -07:00
|
|
|
"[c]": {
|
2024-03-24 19:38:29 -07:00
|
|
|
"editor.defaultFormatter": "ms-vscode.cpptools",
|
|
|
|
"editor.formatOnSave": true
|
2023-07-10 03:05:34 -07:00
|
|
|
},
|
|
|
|
"[cpp]": {
|
2024-03-24 19:38:29 -07:00
|
|
|
"editor.defaultFormatter": "ms-vscode.cpptools",
|
|
|
|
"editor.formatOnSave": true
|
|
|
|
},
|
|
|
|
// File associations
|
|
|
|
"files.associations": {
|
|
|
|
"*.c": "c",
|
|
|
|
"*.cpp": "cpp",
|
|
|
|
"*.h": "c",
|
|
|
|
"*.hpp": "c"
|
2023-07-10 03:05:34 -07:00
|
|
|
},
|
|
|
|
"workbench.editorAssociations": {
|
2023-07-14 01:32:48 -07:00
|
|
|
"*.c": "default",
|
2024-03-24 19:38:29 -07:00
|
|
|
"*.cpp": "default",
|
|
|
|
"*.h": "default",
|
|
|
|
"*.hpp": "default"
|
2023-07-10 03:05:34 -07:00
|
|
|
},
|
2024-03-24 19:38:29 -07:00
|
|
|
// IntelliSense configuration
|
|
|
|
"C_Cpp.default.includePath": [
|
|
|
|
"/usr/include",
|
|
|
|
"${workspaceFolder}/**",
|
|
|
|
"${workspaceFolder}/src/include",
|
|
|
|
"${workspaceFolder}/include"
|
|
|
|
],
|
|
|
|
"C_Cpp.default.defines": [],
|
|
|
|
"C_Cpp.default.compileCommands": "build/compile_commands.json",
|
|
|
|
"C_Cpp.default.browse.path": [
|
|
|
|
"/usr/include",
|
|
|
|
"${workspaceFolder}/**",
|
|
|
|
"${workspaceFolder}/src/include",
|
|
|
|
"${workspaceFolder}/include"
|
|
|
|
],
|
|
|
|
"C_Cpp.default.browse.databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db",
|
|
|
|
"C_Cpp.default.configurationProvider": "ms-vscode.cpptools",
|
2024-08-27 19:49:56 -07:00
|
|
|
"C_Cpp.default.intelliSenseMode": "linux-gcc-x64"
|
2023-07-10 03:05:34 -07:00
|
|
|
}
|