vscode tab 制表符的配置

2018-01-24 00:00:00 by 【6yang】, 2438 visits, 收藏 | 返回
安装插件有:
beautify css
dart
EditorConfig
eslint
prettier //几乎涵盖所有格式 匹配lint 包括JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown  "prettier.tabWidth": 4, (统一)
vetur //vue 高亮提示
vue 2 snippets

------------------------------
 
// 将设置放入此文件中以覆盖默认设置
{ // 显示垂直标尺的列,80字符的ruler    
  "editor.fontSize": 18,
  // 这里如果是false 即可使用tab
  "editor.detectIndentation": false,
  "editor.insertSpaces": true,
  "editor.tabSize": 4,
  //"editor.renderWhitespace": "all",
  "files.eol": "\\\\n",
  "editor.cursorStyle": "line",
  "editor.wordWrap": "on",
  // "editor.renderControlCharacters": false,
  // "editor.renderIndentGuides": false,
  // "eslint.autoFixOnSave": true,
  // "editor.detectIndentation": false,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "html",
      "autoFix": true
    },
    {
      "language": "vue",
      "autoFix": true
    }
  ],
"window.zoomLevel": 0,
  /*VSCode 中 tpl 文件高亮渲染*/
  "files.associations": {
    "*.tpl": "html"
  },
  "css.fileExtensions": [
    "css",
    "scss",
    "less"
  ],
// Set the default
"editor.formatOnSave": false,

// Enable per-language
"[javascript]": {
    "editor.formatOnSave": false,
},
"window.menuBarVisibility": "default",
"editor.minimap.enabled": false,
// 不显示space空格
"editor.renderWhitespace": "all",//none
"prettier.tabWidth": 4,

"editor.renderControlCharacters": true,
//"emmet.triggerExpansionOnTab": false,
}
分享到:
share

    图片原图

    loading

    loading