Skip to content

Instantly share code, notes, and snippets.

@lingmujianshi
Last active April 13, 2019 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lingmujianshi/c70b81a43c7042b608dde9c5bedcdd6a to your computer and use it in GitHub Desktop.
Save lingmujianshi/c70b81a43c7042b608dde9c5bedcdd6a to your computer and use it in GitHub Desktop.
vscode win setting
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.17763.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(msvc) Launch",
"type": "cppvsdbg",
"request": "launch",
//"preLaunchTask": "msvc build",//デバック前にコンパイル
"program": "${workspaceFolder}/main.exe",
"args": [],
"stopAtEntry": false,//エントリーポンとから停止する。
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true //外部ターミナルを起動する
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "msvc build",
"type": "shell",
"command": "cl.exe",
"args": [
"/EHsc",
"/Zi",
"/Fe:",
"main.exe",
"main.cpp"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
},
"problemMatcher":"$msCompile"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment