visual studio code 相关配置

相关插件

  • 翻译(英汉词典)
  • 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 文件
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值