Commit ce96e862 authored by Adam Blank's avatar Adam Blank
Browse files

Merge branch 'vscode' into 'master'

Add vscode settings

See merge request !1
1 merge request!1Add vscode settings
Showing with 163 additions and 5 deletions
+163 -5
# Windows build artifacts
*.exe
*.ilk
*.obj
*.pdb
\ No newline at end of file
{
"configurations": [
// Windows-specific
{
"name": "Win32",
"intelliSenseMode": "msvc-x64",
"compilerPath": "cl.exe",
"cStandard": "c11",
"includePath": [
"${workspaceFolder}/**",
"C:/Users/${env:USERNAME}/msvc/include"
],
"defines": [
"_USE_MATH_DEFINES",
"_WIN32",
"_CRT_SECURE_NO_WARNINGS"
]
},
// Default to clang for other systems
{
"name": "Mac",
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"includePath": [
"${workspaceFolder}/**"
]
},
{
"name": "Linux",
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"includePath": [
"${workspaceFolder}/**"
]
}
],
"version": 4
}
\ No newline at end of file
{
"version": "0.2.0",
"configurations": [
// Need to separate debug configurations because they use different
// "types", and we can't change that with an OS-specific setting.
// You will want one config per binary-OS that you want to debug
// Windows binaries
{
"name": "(Windows) Debug task0",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/task0.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "newExternalWindow",
},
{
"name": "(Windows) Debug task1",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/task1.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "newExternalWindow",
},
{
"name": "(Windows) Debug task2",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/task2.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "newExternalWindow",
},
// OSX / Linux binaries
{
"name": "(OSX / Linux) Debug task0",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/task0",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
},
{
"name": "(OSX / Linux) Debug task1",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/task1",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
},
{
"name": "(OSX / Linux) Debug task2",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/task2",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
}
]
}
\ No newline at end of file
{ {
"files.associations": { // Easier to go through VsDevCmd than to hack PATH
"sstream": "c", "terminal.integrated.shell.windows": "cmd.exe",
"string.h": "c" "terminal.integrated.env.windows": {
} "VsDevCmd": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\""
} },
\ No newline at end of file "terminal.integrated.shellArgs.windows": [
"/k",
"%VsDevCmd%",
"&&",
// CMD _sucks_, drop into PS immediately
"powershell.exe"
],
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment