vscode-setting备份

复制代码
  1 {
  2   "javascript.preferences.quoteStyle": "single",
  3   "workbench.colorTheme": "Solarized Light (no bold)",
  4   "files.autoSave": "onFocusChange",
  5   "eslint.format.enable": true,
  6   "eslint.nodeEnv": "",
  7   // 重新设定tabsize
  8   "editor.tabSize": 2,
  9   "editor.fontSize": 16,
 10   "debug.console.fontSize": 14,
 11   "terminal.integrated.fontSize": 14,
 12   "explorer.confirmDragAndDrop": false,
 13   "bracket-pair-colorizer-2.colors": [
 14     "Orchid",
 15     "YellowGreen",
 16     "Orange"
 17   ],
 18   "[typescript]": {
 19     "editor.defaultFormatter": "vscode.typescript-language-features"
 20   },
 21   "[json]": {
 22     "editor.defaultFormatter": "vscode.json-language-features"
 23   },
 24   "[jsonc]": {
 25     "editor.defaultFormatter": "vscode.json-language-features"
 26   },
 27   "[javascript]": {
 28     "editor.defaultFormatter": "esbenp.prettier-vscode"
 29   },
 30   // vscode默认启用了根据文件类型自动设置tabsize的选项
 31   "editor.detectIndentation": false,
 32   // #每次保存的时候自动格式化 
 33   "editor.formatOnSave": true,
 34   // #每次保存的时候将代码按eslint格式进行修复
 35   "eslint.autoFixOnSave": true,
 36   // 添加 vue 支持
 37   "eslint.validate": [
 38     "javascript",
 39     "javascriptreact",
 40     {
 41       "language": "vue",
 42       "autoFix": true
 43     }
 44   ],
 45   "indent": "off",
 46   "@typescript-eslint/indent": [
 47     "error"
 48   ],
 49   //  #让prettier使用eslint的代码格式进行校验 
 50   "prettier.eslintIntegration": true,
 51   //  #代码结尾的分号 
 52   "prettier.semi": false,
 53   //  #使用带引号替代双引号 
 54   "prettier.singleQuote": true,
 55   //  #让函数(名)和后面的括号之间加个空格
 56   "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
 57   // #这个按用户自身习惯选择 
 58   "vetur.format.defaultFormatter.html": "js-beautify-html",
 59   // #让vue中的js按编辑器自带的ts格式进行格式化 
 60   "vetur.format.defaultFormatter.js": "vscode-typescript",
 61   "vetur.format.defaultFormatterOptions": {
 62     "js-beautify-html": {
 63       "wrap_attributes": "auto", // #vue组件中html代码格式化样式 force-aligned
 64       "prettier": {
 65         "semi": true,
 66         "singleQuote": true
 67       }
 68     }
 69   },
 70   // 格式化stylus, 需安装Manta's Stylus Supremacy插件
 71   "stylusSupremacy.insertColons": false, // 是否插入冒号
 72   "stylusSupremacy.insertSemicolons": false, // 是否插入分好
 73   "stylusSupremacy.insertBraces": false, // 是否插入大括号
 74   "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
 75   "stylusSupremacy.insertNewLineAroundBlocks": false,
 76   "[vue]": {
 77     "editor.defaultFormatter": "dbaeumer.vscode-eslint"
 78   }, // 两个选择器中是否换行
 79   "vetur.experimental.templateInterpolationService": true, // vue template代码中,有ts的提示
 80   "editor.fontLigatures": null,
 81   "workbench.iconTheme": "vscode-icons",
 82   "editor.codeActionsOnSave": {
 83     "source.fixAll.eslint": true
 84   },
 85   // HTML Snippets:vue中HTML代码tab键自动补全
 86   "files.associations": {
 87     // "*.vue": "html"
 88   },
 89   "emmet.triggerExpansionOnTab": true,
 90   "emmet.includeLanguages": {
 91     "vue-html": "html",
 92     "vue": "html"
 93   },
 94   "window.zoomLevel": 0,
 95   "[html]": {
 96     "editor.defaultFormatter": "esbenp.prettier-vscode"
 97   },
 98   "workbench.editor.enablePreview": false,
 99   "z-reader.encoding": "utf8",
100   "powermode.enabled": true,
101   "powermode.presets": "particles" // fireworks "particle" "flames"
102 }
复制代码

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
  "workbench.colorTheme": "Solarized Light",
  // 目自定义的颜色
  "editor.tokenColorCustomizations": {
    "comments": "#008000",
    "keywords": "#d33682",
    "variables": "#2aa198",
    "strings": "#dc322f",
    "functions": "#859900",
    // "parameter":"#a6a9a3",
    "numbers": "#6c7ec4",
    "types": "#30ada2",
    "textMateRules": [
      {
        "scope": "variable.other.property.ts",
        "settings": {
          "foreground": "#9932cc",
        }
      },
      {
        "scope": "entity.name.tag",
        "settings": {
          "foreground": "#d33682",
        }
      },
      {
        "scope": "entity.other.attribute-name",
        "settings": {
          "foreground": "#d33682",
        }
      },
      {
        "scope": "support.type",
        "settings": {
          "foreground": "#9aa5a2",
        }
      },
      {
        "scope": "text.html.derivative",
        "settings": {
          "foreground": "#9aa5a2",
        }
      },
      {
        "scope": "support.function",
        "settings": {
          "foreground": "#d33682",
        }
      },
      {
        "scope": "keyword.control.conditional.vue",
        "settings": {
          "foreground": "#9aa5a2",
        }
      },
    ]
  },
  "workbench.colorCustomizations": {
    "editor.background": "#fef6e0",
    "editor.selectionBackground": "#00FF00",
    "editor.foreground": "#880000"
  },
  "workbench.iconTheme": "vscode-icons",
  "diffEditor.ignoreTrimWhitespace": false,
  "javascript.preferences.quoteStyle": "single",
  "files.autoSave": "onFocusChange",
  "eslint.format.enable": true,
  "eslint.nodeEnv": "",
  // 重新设定tabsize
  "editor.tabSize": 2,
  "editor.fontSize": 14,
  "debug.console.fontSize": 14,
  "terminal.integrated.fontSize": 14,
  "explorer.confirmDragAndDrop": false,
  "bracket-pair-colorizer-2.colors": [
    "Orchid",
    "YellowGreen",
    "Orange"
  ],
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[vue]": {
    "editor.defaultFormatter": "Vue.volar"
  },
  // vscode默认启用了根据文件类型自动设置tabsize的选项
  "editor.detectIndentation": false,
  // #每次保存的时候自动格式化
  "editor.formatOnSave": true,
  // #每次保存的时候将代码按eslint格式进行修复
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "indent": "off",
  "@typescript-eslint/indent": [
    "error"
  ],
  //  #让prettier使用eslint的代码格式进行校验
  "prettier.eslintIntegration": true,
  //  #代码结尾的分号
  "prettier.semi": false,
  //  #使用带引号替代双引号
  "prettier.singleQuote": true,
  //  #让函数(名)和后面的括号之间加个空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  // #这个按用户自身习惯选择
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  // #让vue中的js按编辑器自带的ts格式进行格式化
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "auto", // #vue组件中html代码格式化样式 force-aligned
      "prettier": {
        "semi": true,
        "singleQuote": true
      }
    }
  },
  // 两个选择器中是否换行
  "vetur.experimental.templateInterpolationService": true, // vue template代码中,有ts的提示
  // HTML Snippets:vue中HTML代码tab键自动补全
  "files.associations": {
    // "*.vue": "html"
  },
  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "vue-html": "html",
    "vue": "html"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.editor.enablePreview": false,
  "z-reader.encoding": "utf8",
  "powermode.enabled": true,
  "powermode.presets": "particles",
  "window.zoomLevel": 1 // fireworks "particle" "flames"
}

  

posted @   shine_lovely  阅读(119)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示