{
    // VScode主题配置
    "files.trimFinalNewlines": true,
    "editor.detectIndentation": true,
    "editor.wordWrap": "on",
    "editor.mouseWheelZoom": true,
    "editor.formatOnType": true,
    "editor.find.autoFindInSelection": true,
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },
    "[python]": {
        "editor.tabSize": 4
    },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "editor.renderControlCharacters": true,
    "git.enableSmartCommit": true,
    "editor.renderWhitespace": "all",
    "editor.tabSize": 2,
    "editor.fontSize": 16,
    "editor.fontFamily": "'DejaVu Sans Mono',Monaco,Consolas,monospace",
    "editor.snippetSuggestions": "top",
    "editor.formatOnPaste": true,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "auto"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },

    "vetur.format.defaultFormatter.js": "vscode-typescript",
    // 自动保存
    "files.autoSave": "onFocusChange",
    // VScode 文件搜索区域配置
    "search.exclude": {
        "**/dist": true,
        "**/build": true,
        "**/elehukouben": true,
        "**/.git": true,
        "**/.gitignore": true,
        "**/.svn": true,
        "**/.DS_Store": true,
        "**/.idea": true,
        "**/.vscode": false,
        "**/yarn.lock": true,
        "**/tmp": true,
        "**/node_modules": true,
        "**/.vue": true,
        "**/bower_components": true
    },
    // 排除文件搜索区域,比如node_modules
    "files.exclude": {
        "**/.idea": true,
        "**/yarn.lock": true,
        "**/tmp": true
    },
    // 配置文件关联
    "files.associations": {
        "*.vue": "vue",
        "*.wxss": "css",
        "*.cjson": "jsonc",
        "*.wxs": "javascript"
    },
    // 是否开启eslint检测
    "eslint.enable": true,
    // 文件保存时,是否自动根据eslint进行格式化
    "eslint.autoFixOnSave": true,
    // eslint配置文件
    "eslint.options": {
        // "configFile": "C:/Users/Administrator/AppData/Roaming/npm/node_modules/eslint/.eslintrc.js",
        "plugins": [
            "html"
        ]
    },
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue",
        "html"
    ],
    // prettier进行格式化时是否安装eslint配置去执行,建议false
    "prettier.eslintIntegration": true,
    // 每个标签应该使用的空格数量
    "prettier.tabWidth": 2,
    // 如果为true,将使用单引号而不是双引号
    "prettier.singleQuote": true,
    //(默认:true)是否在每行的末尾添加分号(false)
    "prettier.semi": false,
    // 如果为true,则使用制表符缩进行(默认:false)
    "prettier.useTabs": false,
    // 配置gitlen中git提交历史记录的信息显示情况
    "gitlens.advanced.messages": {
        "suppressCommitHasNoPreviousCommitWarning": false,
        "suppressCommitNotFoundWarning": false,
        "suppressFileNotUnderSourceControlWarning": false,
        "suppressGitVersionWarning": false,
        "suppressLineUncommittedWarning": false,
        "suppressNoRepositoryWarning": false,
        "suppressResultsExplorerNotice": false,
        "suppressShowKeyBindingsNotice": true,
        "suppressUpdateNotice": true,
        "suppressWelcomeNotice": false
    },
    "git.confirmSync": false,
    "gitlens.keymap": "chorded",
    "[paradox]": {},
    "explorer.confirmDelete": false,
    "gitlens.gitExplorer.files.layout": "tree",
    "workbench.startupEditor": "welcomePage",
    "explorer.confirmDragAndDrop": false,
    "gitlens.historyExplorer.enabled": true,
    "workbench.sideBar.location": "left",
    "window.menuBarVisibility": "default",
    "workbench.statusBar.visible": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "extensions.ignoreRecommendations": false,
    "window.zoomLevel": 0,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[css]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[scss]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[less]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "breadcrumbs.enabled": true,
    "workbench.iconTheme": "vscode-icons",
    "terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "vsicons.dontShowNewVersionMessage": true,
    "liveSassCompile.settings.formats": [
        {
            "format": "expanded",
            "extensionName": ".wxss",
            "savePath": null
        }
    ],
    "liveSassCompile.settings.generateMap": false,
    "editor.formatOnSave": true,
    "html.format.endWithNewline": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "java.configuration.checkProjectSettingsExclusions": false
}

 

Logo

前往低代码交流专区

更多推荐