Open wolichuang opened 3 years ago
文件>设置>首选项 搜索设置 search.followSymlinks:false ; 之前好多的rg进程没有了。电脑也不卡了 git.enabled: false git.autorefresh: false
首选项 - settings - "terminal.integrated.shell.windows": "D:\\program\\Git\\bin\\bash.exe"
{ // tab 大小为2个空格 "editor.tabSize": 2, // 编辑器换行 "editor.wordWrap": "off", // 开启 vscode 文件路径导航 "breadcrumbs.enabled": true, // prettier 设置语句末尾不加分号 "prettier.semi": false, // prettier 设置强制单引号 "prettier.singleQuote": true, // 选择 vue 文件中 template 的格式化工具 "vetur.format.defaultFormatter.html": "js-beautify-html", // vetur 的自定义设置 "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_attributes": "aligned-multiple" }, "prettier": { "singleQuote": true, "semi": false, "printWidth": 100, "wrapAttributes": false, "sortAttributes": false } }, "files.associations": { "*.vue": "vue", "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript" }, // 自动修复 "editor.codeActionsOnSave": { "source.fixAll": true, // 启用全部的格式化工具 "source.fixAll.eslint": false, // 关闭eslint格式化工具 }, "eslint.options": { "extensions": [ ".js", ".vue" ] }, "search.exclude": { "**/node_modules": true, "**/bower_components": true, "**/dist": true }, "emmet.syntaxProfiles": { "javascript": "jsx", "vue": "html", "vue-html": "html" }, "git.confirmSync": false, "window.zoomLevel": 0, "editor.renderWhitespace": "boundary", "editor.cursorBlinking": "smooth", "editor.minimap.enabled": true, "editor.minimap.renderCharacters": false, "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}", "editor.codeLens": true, "editor.snippetSuggestions": "top", "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "eslint.format.enable": true, "editor.quickSuggestions": { "strings": true }, "emmet.includeLanguages": { "wxml": "html" }, "minapp-vscode.disableAutoConfig": true, "search.followSymlinks": false, "git.enabled": false, "git.autorefresh": false, "editor.formatOnSave": true, "eslint.validate": [ "javascript", // 用eslint的规则检测js文件 { "language": "vue", // 检测vue文件 "autoFix": true // 为vue文件开启保存自动修复的功能 }, { "language": "html", "autoFix": true }, ], "terminal.integrated.shell.windows": "D:\\program\\Git\\bin\\bash.exe" }
修改 eslintrc.js
rules: { ... "vue/html-self-closing": ["error", { "html": { "void": "always", "normal": "never", "component": "always" }, "svg": "always", "math": "always" }], ... }
vscode 吃内存
vscode 修改Terminal
vscode 设置 settings.json
Disallow self-closing on HTML void elements
修改 eslintrc.js