vscode setting.json

Posted 彭成刚_Reciter | 技术博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vscode setting.json相关的知识,希望对你有一定的参考价值。

setting.json

 

{
  "sync.gist": "#github的码##",
  "sync.lastUpload": "2018-08-26T06:45:07.435Z",
  "sync.autoDownload": false,
  "sync.autoUpload": false,
  "sync.lastDownload": "2018-05-15T06:30:38.965Z",
  "sync.forceDownload": false,
  "sync.host": "",
  "sync.pathPrefix": "",
  "sync.quietSync": false,
  "sync.askGistName": false,
  "sync.removeExtensions": true,
  "sync.syncExtensions": true,
  "editor.fontSize": 16,
  "workbench.colorTheme": "Dracula Soft",
  "view-in-browser.customBrowser": "chrome",
  "explorer.confirmDragAndDrop": false,
  "explorer.confirmDelete": false,
  "[vue]": {},
  "background.useDefault": false,
  "background.customImages": [
    "file:///D:/bg1.jpg",
    "file:///D:/bg2.jpg",
    "file:///D:/bg3.jpg"
  ],
  "background.style": {
    "content": "‘‘",
    "pointer-events": "none",
    "position": "absolute",
    "z-index": "99999",
    "width": "100%",
    "height": "100%",
    "background-color": "#282A36",
    "background-position": "100% 100%",
    "background-repeat": "no-repeat",
    "opacity": 0.9
  },
  "background.useFront": false,
  "window.zoomLevel": 0,
  "search.location": "sidebar",
  "workbench.activityBar.visible": true,
  "window.menuBarVisibility": "toggle",
  "search.exclude": {
    "**/node_modules": true,
    "**/dist": true,
    "**/bower_components": true
  },
  "terminal.integrated.shell.windows": "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe",
  "git.ignoredRepositories": [
    "https://github.com/iview/iview-admin"
  ],
  "git.checkoutType": "local",
  "git.autoRepositoryDetection": false,
  "git.autorefresh": false,
  "editor.detectIndentation": false,
  "editor.formatOnSave": true,
  "eslint.autoFixOnSave": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  "prettier.eslintIntegration": true,
  "prettier.semi": false,
  "prettier.singleQuote": true,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
    },
    "prettyhtml": {
      "printWidth": 100,
      "singleQuote": false
    }
  },
  "editor.tabSize": 2,
  "todo-tree.defaultHighlight": {
    "foreground": "green",
    "type": "none"
  },
  "todo-tree.customHighlight": {
    "TODO": {},
    "FIXME": {}
  },
  "workbench.iconTheme": "vscode-icons",
  "git.autofetch": true,
  "git.enableSmartCommit": true,
  "git.confirmSync": false,
  "vetur.validation.template": false,
  "vetur.format.defaultFormatter.html": "js-beautify-html"
  // "terminal.integrated.shell.windows": "D:\cmder\Cmder.exe"
}

 

我以前不好用的 但是颜色比较喜欢的黑色的

{
    "window.zoomLevel": 2,
    "workbench.iconTheme": "vscode-icons",
    "terminal.integrated.shell.windows": "C:\WINDOWS\System32\cmd.exe",
    "editor.tabSize": 2,
    "vetur.validation.template": false,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "[vue]": {},
    "emmet.includeLanguages": {
        "vue": "html",
        "vue-html": "html"
    },
    "files.associations": {
        "*.vue": "html"
    },
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },

    //配置eslint
    "eslint.autoFixOnSave": true,
    "files.autoSave": "off",
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        {
            "language": "vue",
            "autoFix": true
        }
    ],
    "eslint.options": {
        "plugins": ["html"]
    },
    "search.exclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
      }




}

 

以上是关于vscode setting.json的主要内容,如果未能解决你的问题,请参考以下文章

vscode setting.json

VsCode-setting.json用户配置

同步vscode的setting.json和extensions

Mac vscode 设置latex setting.json 位置

我在 VSCode 上统一的工作区 setting.json 在 files.exclude 之后说“文件结束”

VSCODE 使用“editor.unicodeHighlight.allowedCharacters”在 setting.json 编辑器屏幕中输入允许字符的正确格式是啥