vscode-settings配置

{
    // 文字加粗
    "editor.fontWeight": "bold",
    "files.autoSave": "afterDelay", 
    "eslint.run": "onSave", // 自动保存
    "eslint.alwaysShowStatus": true,
    "editor.mouseWheelZoom": true, // ctrl+滚轮放大缩小代码页面
    "path-intellisense.mappings": {
        "@": "${workspaceRoot}/src", // '/'显示路径
        "/": "${workspaceRoot}/" // '@' 显示路径
    },
    // 工具-tab缩进
    "emmet.showSuggestionsAsSnippets": true,
    "emmet.triggerExpansionOnTab": true,
    "editor.tabCompletion": "on",
    "workbench.colorTheme": "Monokai", // 主题颜色
    "git.autofetch": true,
    "editor.minimap.enabled": false,
    "workbench.editor.untitled.hint": "hidden",
    "security.workspace.trust.untrustedFiles": "open",
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur" 
    },
    "editor.formatOnSave": true, // 编辑后自动保存
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "aligned-multiple"
        },
        "prettier": {
            "printWidth": 100,
            "wrapAttributes": false,
            "sortAttributes": false,
            "semi": false,
            "singleQuote": true,
            "trailingComma": "none",
        },
        "vetur.format.defaultFormatter.html": "js-beautify-html",
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.useWorkspaceDependencies": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "path-intellisense.extensionOnImport": true,
    "workbench.iconTheme": "material-icon-theme",
    "workbench.startupEditor": "none",
    "bracketPairColorizer.depreciation-notice": false,
    "editor.tabSize": 2,
    "settingsSync.ignoredExtensions": [],
}

posted on 2022-03-29 19:54  凵  阅读(236)  评论(0)    收藏  举报

导航