| | |
| | | //============= Editor ====================== |
| | | //=========================================== |
| | | "explorer.openEditors.visible": 0, |
| | | "editor.tabSize": 2, |
| | | "editor.renderControlCharacters": true, |
| | | "editor.minimap.renderCharacters": false, |
| | | "editor.minimap.maxColumn": 300, |
| | | "editor.minimap.showSlider": "always", |
| | | "editor.smoothScrolling": true, |
| | | "editor.cursorBlinking": "phase", |
| | | "editor.cursorSmoothCaretAnimation": true, |
| | | "editor.detectIndentation": false, |
| | | "editor.defaultFormatter": "esbenp.prettier-vscode", |
| | | "diffEditor.ignoreTrimWhitespace": false, |
| | | "javascript.format.insertSpaceBeforeFunctionParenthesis": true, |
| | | "editor.formatOnPaste": true, |
| | | "editor.formatOnSave": true, |
| | | "editor.suggestSelection": "first", |
| | | "editor.trimAutoWhitespace": true, |
| | | "editor.quickSuggestions": { |
| | |
| | | "emmet.syntaxProfiles": { |
| | | "vue-html": "html", |
| | | "vue": "html", |
| | | "javascript": "javascriptreact", |
| | | "xml": { |
| | | "attr_quotes": "single" |
| | | } |
| | |
| | | "files.exclude": { |
| | | "**/bower_components": true, |
| | | "**/.idea": true, |
| | | "**/yarn.lock": true, |
| | | "**/tmp": true, |
| | | "**/.git": true, |
| | | "**/.svn": true, |
| | |
| | | "**/.DS_Store": true |
| | | }, |
| | | "files.watcherExclude": { |
| | | // 文件监视排除 |
| | | "**/.git/objects/**": true, |
| | | "**/.git/subtree-cache/**": true, |
| | | "**/.vscode/**": true, |
| | |
| | | "**/dist/**": true, |
| | | "**/yarn.lock": true |
| | | }, |
| | | "files.associations": { |
| | | "*.vue": "vue", |
| | | "*.wxss": "css" |
| | | }, |
| | | "stylelint.enable": true, |
| | | "stylelint.packageManager": "yarn", |
| | | "css.validate": true, |
| | | "less.validate": true, |
| | | "scss.validate": true, |
| | | // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ |
| | | // =========================================== |
| | | // ================ Eslint =================== |
| | | // =========================================== |
| | | // "eslint.enable": true, |
| | | "eslint.alwaysShowStatus": true, |
| | | "eslint.options": { |
| | | // 配置 |
| | | "plugins": ["html", "vue", "javascript", "jsx", "typescript"], |
| | | "extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"] |
| | | }, |
| | |
| | | "html", |
| | | "vue" |
| | | ], |
| | | // "eslint.autoFixOnSave": true, |
| | | // =========================================== |
| | | // ================ Vetur ==================== |
| | | // =========================================== |
| | |
| | | "vetur.format.defaultFormatter.ts": "prettier-tslint", |
| | | "vetur.format.defaultFormatter.js": "prettier", |
| | | "vetur.languageFeatures.codeActions": false, |
| | | // "vetur.validation.script": false, |
| | | "vetur.format.defaultFormatterOptions": { |
| | | "js-beautify-html": { |
| | | "wrap_attributes": "force-expand-multiline" |
| | |
| | | "i18n-ally.namespace": true, |
| | | "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}", |
| | | "i18n-ally.enabledParsers": ["ts"], |
| | | "i18n-ally.sourceLanguage": "zh", |
| | | "i18n-ally.sourceLanguage": "en", |
| | | "i18n-ally.enabledFrameworks": ["vue", "react"] |
| | | } |