相关插件
- 翻译(英汉词典)
- AZ AL Dev Tools/AL Code Outline
- Bracket Pair Colorizer
- C/C++
- C++ Intellisense
- Chinese Language Park for vscode
- Code Runner
- Code Spell Checker
- GitLens
- Visual Studio IntelliCode
- one dark pro
- LeetCode
- magicPython
- TODO tree
- vscode-icons
- vscode-pdf
settings.json 配置
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"editor.wordWrap": "on",
"editor.codeActionsOnSave": null,
"editor.rulers": [120],
"window.zoomLevel": 0,
"editor.fontSize": 18,
"cSpell.ignoreWords": [
"namespace"
],
"workbench.colorCustomizations": {
// "editor.selectionBackground": "#eff5fce0",
"editor.selectionHighlightBackground": "#c5293e"
},
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "italic font",
"scope": [
"comment",
"keyword",
"storage",
"keyword.control",
"keyword.control.from",
"keyword.control.flow",
"keyword.operator.new",
"keyword.control.import",
"keyword.control.export",
"keyword.control.default",
"keyword.control.trycatch",
"keyword.control.conditional",
"storage.type",
"storage.type.class",
"storage.modifier.tsx",
"storage.type.function",
"storage.modifier.async",
"variable.language",
"variable.language.this",
"variable.language.super",
"meta.class",
"meta.var.expr",
"constant.language.null",
"support.type.primitive",
"entity.name.method.js",
"entity.other.attribute-name",
"punctuation.definition.comment",
"text.html.basic entity.other.attribute-name",
"tag.decorator.js entity.name.tag.js",
"tag.decorator.js punctuation.definition.tag.js",
"source.js constant.other.object.key.js string.unquoted.label.js",
],
"settings": {
"fontStyle": "italic",
}
},
]
},
"files.autoGuessEncoding": true,
"editor.mouseWheelZoom": true,
"code-runner.runInTerminal": true,
"files.autoSave": "afterDelay",
"leetcode.endpoint": "leetcode-cn",
"leetcode.workspaceFolder": "D:\\code\\the_place_to_store_leetcode_problem",
"leetcode.editor.shortcuts": [
"submit",
"test",
"solution"
],
"markdown.preview.fontSize": 16,
"leetcode.hint.commandShortcut": false,
"leetcode.hint.configWebviewMarkdown": false,
"cSpell.userWords": [
"unuseful"
],
"editor.tabCompletion": "on",
"editor.detectIndentation": false, // 关闭检测第一个tab后面就tab
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": true,
"editor.tabSize": 4, // tab为四个空格
"editor.insertSpaces": true, // 转为空格
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Monokai",
"todo-tree.tree.showScanModeButton": false
}
- 使用鼠标滚轮改变字体大小:打开文件-首选项-设置在搜索设置中输入
mousewheelzoom
,勾选Editor: Mouse Wheel Zoom。 - 解决中文乱码问题 : 配置:“文件-首选项-设置”,搜索encoding,勾选"Auto Guess Encoding"。
- 默认单行(多行)注释 快捷键
ctrl+/
- 默认多行注释 快捷键
alt+shift+a
VScode 配置调试 C++
看这一篇就够了: https://zhuanlan.zhihu.com/p/77645306
- 自定义调试和运行要创建 launch.json 文件