Skip to content

new launch config on mac and keybindings #11

Merged
merged 2 commits into from
Jan 7, 2026
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configuration/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"cStandard": "c17",
"cppStandard": "c++20",
"compileCommands": "build/compile_commands.json",
"intelliSenseMode": "macos-gcc-x64"
"intelliSenseMode": "macos-clang-x64"
},
{
"name": "Linux",
Expand Down
10 changes: 10 additions & 0 deletions configuration/.vscode/keybindings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{ "key": "ctrl+f5", "command": "workbench.action.tasks.runTask",
"args": "Run Program", "when": "isMac" },

{ "key": "ctrl+f5", "command": "workbench.action.tasks.runTask",
"args": "Run Program", "when": "isLinux" },

{ "key": "ctrl+f5", "command": "workbench.action.tasks.runTask",
"args": "Run Program", "when": "isWindows" }
]
39 changes: 24 additions & 15 deletions configuration/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"configurations": [
{
"name": "Build and Run Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/program",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "Build Executable",
"internalConsoleOptions": "neverOpen",
"osx": {
"MIMode": "lldb"
}
}
]
"configurations": [
{
"name": "Build and Run Debug (Windows/Linux)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/program",
"cwd": "${workspaceFolder}",
"args": [],
"preLaunchTask": "Build Executable",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Build and Run Debug (macOS)",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/program",
"cwd": "${workspaceFolder}",
"args": [],
"preLaunchTask": "Build Executable",
"internalConsoleOptions": "neverOpen"
},


]
}
12 changes: 12 additions & 0 deletions configuration/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@
"showReuseMessage": true,
"clear": true
}
},
{
"type": "shell",
"label": "Run Program",
"dependsOn": "Build Executable",
"command": "${workspaceFolder}/build/program",
"options": { "cwd": "${workspaceFolder}" },
"linux": { "command": "${workspaceFolder}/build/program" },
"windows": { "command": "${workspaceFolder}\\build\\program.exe" },
"osx": { "command": "${workspaceFolder}/build/program" },
"problemMatcher": []
}

]
}