diff --git a/configuration/.vscode/c_cpp_properties.json b/configuration/.vscode/c_cpp_properties.json index 50f37be..770cd3e 100644 --- a/configuration/.vscode/c_cpp_properties.json +++ b/configuration/.vscode/c_cpp_properties.json @@ -34,7 +34,7 @@ "cStandard": "c17", "cppStandard": "c++20", "compileCommands": "build/compile_commands.json", - "intelliSenseMode": "macos-gcc-x64" + "intelliSenseMode": "macos-clang-x64" }, { "name": "Linux", diff --git a/configuration/.vscode/keybindings.json b/configuration/.vscode/keybindings.json new file mode 100644 index 0000000..37b65e0 --- /dev/null +++ b/configuration/.vscode/keybindings.json @@ -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" } +] diff --git a/configuration/.vscode/launch.json b/configuration/.vscode/launch.json index 4c968c9..7396bc9 100644 --- a/configuration/.vscode/launch.json +++ b/configuration/.vscode/launch.json @@ -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" + }, + + + ] } diff --git a/configuration/.vscode/tasks.json b/configuration/.vscode/tasks.json index b3c7619..7e657da 100644 --- a/configuration/.vscode/tasks.json +++ b/configuration/.vscode/tasks.json @@ -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": [] } + ] }