diff --git a/.vscode/cmake-kits.json b/.vscode/cmake-kits.json new file mode 100644 index 0000000..34f69b9 --- /dev/null +++ b/.vscode/cmake-kits.json @@ -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" + } + } + ] \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8fe9dd5 --- /dev/null +++ b/.vscode/launch.json @@ -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 + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index c2dcede..76776c5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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" } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..6c28385 --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + ] +} \ No newline at end of file