VS Code settings.json 配置终极版

  • 如果不喜欢 VSCode 中出现斜体,可以去 ~/.vscode/extensions/ 目录中,找到对应的 theme,把其中 font-family: italic 全部删掉即可
{
  "workbench.iconTheme": "Monokai Pro (Filter Octagon) Icons",
  "workbench.colorTheme": "Adapta Nokto",
  "todo-tree.tree.showScanModeButton": false,
  "editor.semanticTokenColorCustomizations": null,
  "editor.tabSize": 2,
  "editor.fontSize": 14,
  // "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
  "editor.fontFamily": "'Droid Sans Mono', 'PingFang SC'",
  // "editor.fontFamily": "'Source Code Pro', 'PingFang SC'",
  "editor.cursorBlinking": "solid",
  "editor.cursorStyle": "block",
  "editor.fontLigatures": true,
  "files.autoGuessEncoding": false,

  "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "**/node_modules": true,
  },

  "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/*.code-search": true,
    "**/.vscode": true,
    "**/.git": true,
    "**/.history": true,
  },

  "editor.tokenColorCustomizations": {
    // 注释字体颜色
    "comments": "#b388ff",
  },

  "workbench.colorCustomizations": {
    "editorUnnecessaryCode.opacity": "#000",
    // 鼠标颜色
    "editorCursor.foreground": "#f72e96",
    // 高亮当前行背景色
    "editor.lineHighlightBackground": "#EDF4FC",
    "editor.lineHighlightBorder": "#EDF4FC",
    "editor.lineHighlightBackground": "#094771",
    "editor.lineHighlightBorder": "#094771",
    // 行数区域字体颜色
    "editorLineNumber.foreground": "#43a047",
  },
  "workbench.startupEditor": "newUntitledFile",
}

你可能感兴趣的:(VS Code settings.json 配置终极版)