| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- {
- // 指定行尾序列为\n(LF)或者\r\n(CRLF)或者auto
- // "files.eol": "\n",
- // 在保存时格式化
- "editor.formatOnSave": true,
- "editor.formatOnSaveMode": "file",
- "eslint.codeActionsOnSave.mode": "problems",
- "eslint.debug": false,
- // 保存时进行一些操作
- "editor.codeActionsOnSave": {
- "source.fixAll.eslint": "explicit",
- "source.organizeImports": "explicit"
- // 在保存时运行eslint
- // "source.fixAll.eslint": true,
- // "source.organizeImports": true // 保存时整理 import ,去掉没用的导包,会删掉declare global {import utils from 'billd-utils';},因此先不用
- },
- // "eslint.autoFixOnSave": true, // 废弃,使用editor.codeActionsOnSave替代
- // Path Autocomplete,这个插件能够支持路径补全,默认vsc默认的路径提示可能不会提示一些css或者jpg等资源,用这个插件可以完善vscode的路径提示
- "path-autocomplete.pathMappings": {
- "@": "${folder}/src",
- "script": ["${folder}/src/script"]
- },
- // 别名路径跳转,这个插件可以完善vscode的跳转
- "alias-skip.allowedsuffix": [
- "css",
- "less",
- "sass",
- "scss",
- "jpg",
- "jpeg",
- "png",
- "webp",
- "gif",
- "svg",
- "js",
- "jsx",
- "ts",
- "tsx",
- "vue"
- ],
- "typescript.tsdk": "node_modules/typescript/lib",
- "vue.codeActions.savingTimeLimit": 2000
- }
|