vscode工程环境配置

master
zcy 2020-08-29 17:37:33 +08:00
parent 6bc8e49137
commit d2664d98e1
4 changed files with 95 additions and 1 deletions

49
.vscode/cmake-kits.json vendored Normal file
View File

@ -0,0 +1,49 @@
[
{
"name": "Visual Studio Community 2019 Release - amd64",
"visualStudio": "0ef8b9d1",
"visualStudioArchitecture": "x64",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "x64",
"toolset": "host=x64"
}
},
{
"name": "Visual Studio Community 2019 Release - amd64_x86",
"visualStudio": "0ef8b9d1",
"visualStudioArchitecture": "x64",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "win32",
"toolset": "host=x64"
}
},
{
"name": "Visual Studio Community 2019 Release - x86",
"visualStudio": "0ef8b9d1",
"visualStudioArchitecture": "x86",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "win32",
"toolset": "host=x86"
}
},
{
"name": "Visual Studio Community 2019 Release - x86_amd64",
"visualStudio": "0ef8b9d1",
"visualStudioArchitecture": "x86",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "x64",
"toolset": "host=x86"
}
},
{
"name": "Unix Makefiles",
"compilers": {
"C": "C:/msys64/usr/bin/gcc.exe",
"CXX": "C:/msys64/usr/bin/g++.exe"
}
}
]

28
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "输入程序名称,例如 ${workspaceFolder}/a.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/path/to/gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

View File

@ -1,5 +1,10 @@
{
"files.associations": {
"*.rh": "cpp"
}
},
"cmake.generator": "Unix Makefiles",
"cmake.environment": {
"CMAKE_MAKE_PROGRAM":"make"
},
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
}

12
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "echo Hello"
}
]
}