diff --git a/.gitignore b/.gitignore index b5e7c37..9bab31c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ build/ release/ +# .vscode +# .vscode/ + # SI4 SIP.si4project/ @@ -17,9 +20,6 @@ x86/ x64/ ARM/ -# .vscode -.vscode/ - # MDK-ARM DebugConfig/ Listings/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2f2f679 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "unicstl", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/release/bin/test.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ], + "preLaunchTask": "build", + "miDebuggerPath": "D:/Qt/Tools/mingw1120_64/bin/gdb.exe" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f110707 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "cmake.configureOnOpen": true, + "files.encoding": "gb18030", + "files.associations": { + "common.h": "c", + "unicstl.h": "c", + "test.h": "c", + "queue.h": "c" + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..69487e4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "build", + "command": "${workspaceFolder}/mk.bat", + "group": { + "kind": "build", + "isDefault": true + } + }, + ] +} \ No newline at end of file