Skip to content

Commit

Permalink
perf: refine vscode development configuration (#430)
Browse files Browse the repository at this point in the history
- Debug in the target folder
- Avoid annoying cmake automatic configuration
- Show CMake toolset with icons in status bar

Signed-off-by: l.feng <[email protected]>
  • Loading branch information
msclock authored Dec 20, 2024
1 parent 451979a commit fd558b3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${command:cmake.launchTargetDirectory}",
"environment": [],
"console": "integratedTerminal"
},
Expand All @@ -22,7 +22,7 @@
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${command:cmake.launchTargetDirectory}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
Expand Down
9 changes: 2 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"cmake.configureOnEdit": false,
"cmake.options.statusBarVisibility": "icon",
"cmake.useCMakePresets": "always",
"cmake.options.statusBarVisibility": "compact",
"files.exclude": {
"**/.clangd/**": true
},
"files.watcherExclude": {
"**/.clangd/**": true
},
"files.associations": {
"iosfwd": "cpp",
"type_traits": "cpp",
Expand Down
4 changes: 2 additions & 2 deletions template/.vscode/launch.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${command:cmake.launchTargetDirectory}",
"environment": [],
"console": "integratedTerminal"
},
Expand All @@ -22,7 +22,7 @@
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${command:cmake.launchTargetDirectory}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
Expand Down
9 changes: 2 additions & 7 deletions template/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"cmake.configureOnEdit": false,
"cmake.options.statusBarVisibility": "icon",
"cmake.useCMakePresets": "always",
"cmake.options.statusBarVisibility": "compact",
"files.exclude": {
"**/.clangd/**": true
},
"files.watcherExclude": {
"**/.clangd/**": true
},
"files.associations": {
"iosfwd": "cpp",
"type_traits": "cpp",
Expand Down

0 comments on commit fd558b3

Please sign in to comment.