vscode工程环境配置
parent
6bc8e49137
commit
d2664d98e1
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,5 +1,10 @@
|
||||||
{
|
{
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.rh": "cpp"
|
"*.rh": "cpp"
|
||||||
}
|
},
|
||||||
|
"cmake.generator": "Unix Makefiles",
|
||||||
|
"cmake.environment": {
|
||||||
|
"CMAKE_MAKE_PROGRAM":"make"
|
||||||
|
},
|
||||||
|
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
|
||||||
}
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue