From d2664d98e170c153a77fd7ec768c81f9367e4ca7 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq。com> Date: Sat, 29 Aug 2020 17:37:33 +0800 Subject: [PATCH] =?UTF-8?q?vscode=E5=B7=A5=E7=A8=8B=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/cmake-kits.json | 49 +++++++++++++++++++++++++++++++++++++++++ .vscode/launch.json | 28 +++++++++++++++++++++++ .vscode/settings.json | 7 +++++- .vscode/tasks.json | 12 ++++++++++ 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 .vscode/cmake-kits.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json 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