vscode 基本操作
vscode git
vscode cpp
vscode 插件
vscode PlatformIO (物联网)
vscode remote(远程开发)
正则表达式
1. 查找多个关键字(word1)|(word2)
2. 删除和替换带有指定关键字的行^.*(word1|word2).*\n
3. 正则表达式匹配日期\[[^\[]*\]
VSCODE标尺设置
"editor.rulers": [
{"column": 0, "color": "#160b6980"}, // left boundary is 50% opaque
{"column": 2, "color": "#160b6980"}, // tab stops are 12.5% opaque
{"column": 4, "color": "#160b6980"},
{"column": 6, "color": "#160b6980"},
{"column": 8, "color": "#160b6980"},
{"column": 10, "color": "#160b6980"},
{"column": 40, "color": "#160b6980"}, // center line
{"column": 79, "color": "#160b6980"}, // right rule minus one
{"column": 80, "color": "#160b6980"}, // right rule
{"column": 120, "color": "#160b6980"} // extra right rule
],
vscode 插件
1. GitHub Theme
2. Learn with Sumit Theme
3. TODO TREE
4. vscode-icons
5. Error len
6. Bookmarks
7 SLab Theme
选择SLab Atom Plus 主题
8 Doxygen Documentation Generator
9 vscode-proto3
"protoc": {
"path": "${workspaceRoot}/windows_library/protobuf/debug/bin/protoc.exe",
// "path": "${workspaceRoot}/windows_library/protobuf/debug/bin/protoc.exe",
"options": [
"--proto_path=${workspaceRoot}/xplatform/src/proto", // Specify where your .proto files are located
"--cpp_out=${workspaceRoot}/xplatform/src/proto", // Output directory for C++
// "--java_out=${workspaceRoot}/out/java", // Output directory for Java
// "--python_out=${workspaceRoot}/out/py" // Output directory for Python
]
},
10 GitLens — Git supercharged
11 hex editor
12 Competitive Programming Helper (cph)
13 Debug Visualizer
14 Image preview
15. Path Intellisense
选项配置:
smooth
preview
vscode debug
1.*(char[20]*)d 把指针转化成数组打印内容
vscode 参数提示,参数Parameter hints
"C_Cpp.inlayHints.autoDeclarationTypes.enabled": true,
"C_Cpp.inlayHints.parameterNames.enabled": true,
"C_Cpp.inlayHints.referenceOperator.enabled": true
假设您想启用所有这些功能或其中的一部分。
"C_Cpp.inlayHints.parameterNames.suppressWhenArgumentContainsName": true
"[cpp]": {
"editor.inlayHints.fontSize": 12
},
"[c]": {
"editor.inlayHints.fontSize": 12
},
格式自动保存
settings.json 中添加下面的代码
{
"C_Cpp.clang_format_style": "{ BasedOnStyle: Chromium, IndentWidth: 4}",
"editor.formatOnSave": true
}