| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {
- //为了符合eslint的两个空格间隔原则
- "editor.tabSize": 2,
- //配置eslint
- "files.autoSave":"off",
- "editor.codeActionsOnSave": {
- "source.fixAll": "explicit",
- "source.fixAll.eslint": "explicit"
- },
- "eslint.run": "onSave",
- // 控制是否将打开的编辑器显示为预览。预览编辑器将会重用至其被保留(例如,通过双击或编辑),且其字体样式将为斜体。
- "workbench.editor.enablePreview": false,
- "search.exclude": {
- "**/dist": true,
- "**/static": true
- },
- "workbench.colorCustomizations": {
- "activityBar.background": "#332A3A",
- "titleBar.activeBackground": "#473B52",
- "titleBar.activeForeground": "#FBFAFB"
- },
- "eslint.enable": true,
- "editor.codeActionsOnSave": {
- "source.fixAll": true,
- "source.fixAll.eslint": true
- },
- "editor.formatOnSave": true,
- // "rvest.vs-code-prettier-eslint"
- "editor.defaultFormatter":{
- "editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
- "editor.formatOnType": false, // required
- "editor.formatOnPaste": true, // optional
- "editor.formatOnSave": false, // optional
- "editor.formatOnSaveMode": "file", // required to format on save
- "files.autoSave": "onFocusChange", // optional but recommended
- "vs-code-prettier-eslint.prettierLast": false // set as "true" to run 'prettier' last not first
- },
- "vetur.format.defaultFormatter.js": "prettier-eslint",
- "[javascript]": {
- "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
- }
- }
|