| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {
- // 指定行尾序列为\n(LF)或者\r\n(CRLF)或者auto
- // "files.eol": "\n",
- // 在保存时格式化
- "editor.formatOnSave": true,
- // 保存时进行一些操作
- "editor.codeActionsOnSave": {
- "source.fixAll.eslint": true, // 运行eslint
- "source.organizeImports": true // 整理import语句(包括import的成员),以及会删掉未使用的导入,注意:会删掉declare global {import utils from 'billd-utils';}的import utils from 'billd-utils';
- // "source.sortImports": true // 对您的导入进行排序,然而,与organizeImports不同,它不会删除任何未使用的导入,也不会对import里面的成员进行排序
- },
- // "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"
- }
|