其他分享
首页 > 其他分享> > vscode 插件 配置

vscode 插件 配置

作者:互联网

第一页

第二页

第三页

 

 

settings.json配置

 

{
  "editor.fontSize": 20,
  "files.autoSave": "off",
  "editor.formatOnSave": true,
  "editor.renderWhitespace": "all",
  "editor.tabSize": 2,
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "[css]": {
    "editor.defaultFormatter": "michelemelluso.code-beautifier"
  },
  //eslint 代码自动检查相关配置
  "eslint.enable": true,
  "eslint.run": "onType",
  "eslint.autoFixOnSave": true,
  "eslint.options": {
    "extensions": [".js", ".vue"]
  },
  "eslint.validate": [
    "javascriptreact",
    "javascript",
    {
      "language": "vue",
      "autoFix": true
    },
    "html",
    {
      "language": "html",
      "autoFix": true
    }
  ],
  "vetur.format.defaultFormatterOptions": {
    "prettier": {
      "semi": false,
      "singleQuote": true
    }
  },
  "files.associations": {
    "*.vue": "vue",
    "*.stylus": "stylus"
  },
  "git.enableSmartCommit": true,
  "explorer.confirmDelete": false,
  "stylusSupremacy.insertColons": false, // 是否插入冒号
  "stylusSupremacy.insertSemicolons": false, // 是否插入分好
  "stylusSupremacy.insertBraces": false, // 是否插入大括号
  "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
  "stylusSupremacy.insertNewLineAroundBlocks": false,
  "workbench.iconTheme": "vscode-icons", // 两个选择器中是否换行

  "languageStylus.useSeparator": true,
  "languageStylus.useBuiltinFunctions": true,
  "editor.colorDecorators": true,
  "html.autoClosingTags": true,
}

 

标签:插件,false,vscode,配置,html,editor,stylusSupremacy,true,eslint
来源: https://www.cnblogs.com/matd/p/10997571.html