From c1ca282e84b649296c14c2687cd6a6c2bc7e3f86 Mon Sep 17 00:00:00 2001 From: Estom Date: Sun, 11 Apr 2021 22:56:56 +0800 Subject: [PATCH] vscode --- .vscode/c_cpp_properties.json | 21 ------- .vscode/launch.json | 5 +- .vscode/settings.json | 79 --------------------------- .vscode/tasks.json | 69 +++++++++-------------- Vscode教程/C++/hello.cpp | 12 ++++ 工作日志/2021年4月10日-今日计划.md | 1 - 设计模式/refactor/附录3 重构规划书.md | 3 +- 7 files changed, 41 insertions(+), 149 deletions(-) delete mode 100644 .vscode/c_cpp_properties.json delete mode 100644 .vscode/settings.json create mode 100644 Vscode教程/C++/hello.cpp diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index 6b778b10..00000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "configurations": [ - { - "name": "Win32", - "includePath": [ - "${workspaceFolder}/**" - ], - "defines": [ - "_DEBUG", - "UNICODE", - "_UNICODE" - ], - "windowsSdkVersion": "10.0.19041.0", - "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe", - "cStandard": "c17", - "cppStandard": "c++17", - "intelliSenseMode": "windows-msvc-x64" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index b39548b9..b0c5e59a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,9 +4,8 @@ // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "name": "g++.exe - 生成和调试活动文件", + "name": "g++.exe debug", "type": "cppdbg", "request": "launch", "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", @@ -24,7 +23,7 @@ "ignoreFailures": true } ], - "preLaunchTask": "C/C++: g++.exe 生成活动文件" + "preLaunchTask": "C/C++:build" } ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 1e3b2f16..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "python.linting.pylintEnabled": true, - "python.linting.enabled": true, - "python.pythonPath": "C:\\Python\\python.exe", - "files.associations": { - "xstring": "cpp", - "deque": "cpp", - "initializer_list": "cpp", - "list": "cpp", - "vector": "cpp", - "xutility": "cpp", - "regex": "cpp", - "chrono": "cpp", - "iostream": "cpp", - "ostream": "cpp", - "iomanip": "cpp", - "algorithm": "cpp", - "atomic": "cpp", - "cctype": "cpp", - "cmath": "cpp", - "compare": "cpp", - "concepts": "cpp", - "condition_variable": "cpp", - "cstddef": "cpp", - "cstdint": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "exception": "cpp", - "resumable": "cpp", - "fstream": "cpp", - "functional": "cpp", - "future": "cpp", - "ios": "cpp", - "iosfwd": "cpp", - "istream": "cpp", - "iterator": "cpp", - "limits": "cpp", - "locale": "cpp", - "map": "cpp", - "memory": "cpp", - "mutex": "cpp", - "new": "cpp", - "numeric": "cpp", - "random": "cpp", - "ratio": "cpp", - "set": "cpp", - "sstream": "cpp", - "stack": "cpp", - "stdexcept": "cpp", - "streambuf": "cpp", - "string": "cpp", - "system_error": "cpp", - "thread": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "typeinfo": "cpp", - "unordered_map": "cpp", - "unordered_set": "cpp", - "utility": "cpp", - "xfacet": "cpp", - "xhash": "cpp", - "xiosbase": "cpp", - "xlocale": "cpp", - "xlocbuf": "cpp", - "xlocinfo": "cpp", - "xlocmes": "cpp", - "xlocmon": "cpp", - "xlocnum": "cpp", - "xloctime": "cpp", - "xmemory": "cpp", - "xstddef": "cpp", - "xtr1common": "cpp", - "xtree": "cpp" - }, - "git.ignoreLimitWarning": true -} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 838cddca..d90607c6 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,46 +1,27 @@ { - "tasks": [ - { - "type": "cppbuild", - "label": "C/C++: g++.exe 生成活动文件", - "command": "D:\\mingw\\mingw64\\bin\\g++.exe", - "args": [ - "-g", - "${file}", - "-o", - "${fileDirname}\\${fileBasenameNoExtension}.exe" - ], - "options": { - "cwd": "${workspaceFolder}" - }, - "problemMatcher": [ - "$gcc" - ], - "group": "build", - "detail": "调试器生成的任务。" - }, - { - "type": "cppbuild", - "label": "C/C++: g++.exe 生成活动文件 ver(1)", - "command": "D:\\mingw\\mingw64\\bin\\g++.exe", - "args": [ - "-g", - "${file}", - "-o", - "${fileDirname}\\${fileBasenameNoExtension}.exe" - ], - "options": { - "cwd": "${workspaceFolder}" - }, - "problemMatcher": [ - "$gcc" - ], - "group": { - "kind": "build", - "isDefault": true - }, - "detail": "调试器生成的任务。" - } - ], - "version": "2.0.0" + "version": "2.0.0", + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++:build", + "command": "D:\\mingw\\mingw64\\bin\\g++.exe", + "args": [ + "-g", + "${file}", + "-o", + "${fileDirname}\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "编译器: D:\\mingw\\mingw64\\bin\\g++.exe" + } + ] } \ No newline at end of file diff --git a/Vscode教程/C++/hello.cpp b/Vscode教程/C++/hello.cpp new file mode 100644 index 00000000..f73ecde5 --- /dev/null +++ b/Vscode教程/C++/hello.cpp @@ -0,0 +1,12 @@ +#include +#include +using namespace std; + +int main(){ + vector vec{"hello", "world","nihao","!"}; + for(auto a:vec){ + cout< 方案1:主要还是重新设计项目,把项目内的其他代码赋值黏贴出来。让它成为一个新的能够运行的小项目。 >