添加.vscode配置

This commit is contained in:
flykhan 2023-03-23 22:46:13 +08:00
parent 6b4373f3c0
commit 88fc8776b5
4 changed files with 83 additions and 0 deletions

40
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,40 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/x86_64-w64-mingw32",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/backward",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/tr1",
"D:/mingw64/x86_64-w64-mingw32/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"__GNUC__=6",
"__cdecl=__attribute__((__cdecl__))"
],
"intelliSenseMode": "gcc-x64",
"browse": {
"path": [
"${workspaceRoot}",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/x86_64-w64-mingw32",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/backward",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/tr1",
"D:/mingw64/x86_64-w64-mingw32/include"
]
},
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": "",
"compilerPath": "D:/mingw64/bin/gcc.exe",
"cStandard": "c11",
"cppStandard": "c++11"
}
],
"version": 4
}

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

@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (GDB)",
"type": "cppdbg",
"request": "launch",
"targetArchitecture": "x86",
"program": "${workspaceRoot}\\${fileBasename}.exe",
"miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"externalConsole": true,
"preLaunchTask": "g++"
}
]
}

7
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"files.associations": {
"*.js": "javascript",
"iostream": "cpp"
},
"C_Cpp.errorSquiggles": "disabled"
}

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

@ -0,0 +1,17 @@
{
"version": "2.0.0",
"command": "g++",
"args": ["-g","-std=c++11","${file}","-o","${workspaceRoot}\\${fileBasename}.exe"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}