vscode基础配置 基础配置{ files.associations: { *.vue: vue, *.wpy: vue, *.wxml: html, *.wxss: css }, terminal.integrated.shell.windows: E:\\wsy-download\\Git\\bin\\bash.exe, git.enableSmartCommit: true, git.autofetch: true, emmet.triggerExpansionOnTab: true, emmet.showAbbreviationSuggestions: true, emmet.showExpandedAbbreviation: always, emmet.includeLanguages: { vue-html: html, vue: html, wpy: html }, explorer.confirmDelete: false, editor.fontSize: 13, editor.wordWrap: on, editor.detectIndentation: false, // 重新设定tabsize editor.tabSize: 2, prettier.tabWidth: 2, // #值设置为true时每次保存的时候自动格式化 editor.formatOnSave: true, //每120行就显示一条线 editor.rulers: [], // 在使用搜索功能时将这些文件夹/文件排除在外 search.exclude: { **/node_modules: true, **/bower_components: true, **/target: true, **/logs: true }, // 这些文件将不会显示在工作空间中 files.exclude: { // **/.git: true, // **/.svn: true, // **/.hg: true, // **/CVS: true, // **/.DS_Store: true, // **/*.js: { // when: $(basename).ts //ts编译后生成的js文件将不会显示在工作空中 // }, // **/node_modules: true }, // #让vue中的js按prettier格式进行格式化 // vetur.format.defaultFormatter.html: js-beautify-html, vetur.format.defaultFormatter.js: prettier, vetur.format.defaultFormatterOptions: { js-beautify-html: { // #vue组件中html代码格式化样式 wrap_attributes: 0, //也可以设置为“auto”效果会不一样 wrap_line_length: 500, end_with_newline: false, semi: false, singleQuote: true }, prettier: { semi: false, singleQuote: true }, prettyhtml: { tabWidth: 4 // semi: false, //不使用分号结尾 // singleQuote: true, //使用单引号 } }, gitlens.advanced.messages: { suppressGitMissingWarning: true }, view-in-browser.customBrowser: chrome, settingsSync.ignoredExtensions: [], git.confirmSync: false, terminal.integrated.tabs.enabled: true, security.workspace.trust.untrustedFiles: open, [javascript]: { editor.defaultFormatter: esbenp.prettier-vscode }, [json]: { editor.defaultFormatter: esbenp.prettier-vscode }, [vue]: { editor.defaultFormatter: esbenp.prettier-vscode }, [html]: { editor.defaultFormatter: esbenp.prettier-vscode }, prettier.printWidth: 150, prettier.semi: false, prettier.singleQuote: true, // files.autoSave: onFocusChange, vetur.validation.template: false, files.eol: \n, sonarlint.rules: { Web:TableHeaderHasIdOrScopeCheck: { level: off }, Web:TableWithoutCaptionCheck: { level: off } }, // workbench.editor.enablePreview: false // 打开文件始终在新标签页打开 // markdown-preview-enhanced.printBackground: true, // csssupport editor.parameterHints: true, editor.quickSuggestions: { other: true, comments: true, strings: true }, // sonarlint.ls.javaHome: C:\\Program Files\\Java\\jdk-11, // sonarlint.pathToNodeExecutable: C:\\Program Files\\nodejs\\node.exe // 文件头部注释 fileheader.customMade: { Descripttion: , version: , Author: WeiShiYu, Date: Do not edit, LastEditors: WeiShiYu, LastEditTime: Do not Edit }, //函数注释 fileheader.cursorMode: { name: , msg: , param: , return: }, window.commandCenter: true, editor.accessibilitySupport: off, editor.largeFileOptimizations: false, typescript.updateImportsOnFileMove.enabled: always, window.zoomLevel: 2 }插件按需安装