vscode配置代码格式化

废话不多说,直接上图!!!

复杂以下代码,保持即可生效

{
    "editor.formatOnSave": true,// 保存时格式化
    "git.autofetch": true,
    "explorer.confirmDragAndDrop": false,
    "vscode-edge-devtools.mirrorEdits": true,
    "bracketPairColorizer.depreciation-notice": false,
    "python.formatting.provider": "yapf",
    "[python]": {
        "editor.defaultFormatter": "null",
        "editor.formatOnType": true
    },
    "grunt.autoDetect": "on",
    "jake.autoDetect": "on",
    "[vue]": {
        "editor.defaultFormatter": "Vue.volar"
    },
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "vetur.ignoreProjectWarning": true,
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.guides.bracketPairs": true,
    "cssrem.rootFontSize": 100,
    "[typescript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            // 180
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": "off"
    },
    "cmake.configureOnOpen": true,
    "dart.debugExternalPackageLibraries": true,
    "dart.debugSdkLibraries": false,
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "workbench.settings.applyToAllProfiles": [],
    // 选中高亮的颜色
    "workbench.colorCustomizations": {
        "editor.selectionBackground": "#4e8bda7e", //选中高亮
        // "editor.background": "#282c35", //背景色 右边主题
        "editorCursor.foreground": "#bebebe", //编辑器光标颜色
        "editor.lineHighlightBackground": "#14524e", //光标所在行高亮内容的背景颜色
        "editor.lineHighlightBorder": "#00000000", //光标所在行四周边框的背景颜色
        // "sideBar.background": "#21252b", //左边栏
        "sideBar.foreground": "#b3bccc",
        // "tab.inactiveBackground": "#21252b", //上面tabs的颜色
    },
    "vetur.completion.scaffoldSnippetSources": {
        "workspace": "💼",
        "user": "🗒️",
        "vetur": "✌"
    },
    "typescript.validate.enable": false,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_line_length": 180, //设置换行长度
            "wrap_attributes": "auto",
            "end_with_newline": false
        }
    },
    "tabnine.experimentalAutoImports": true,
    "editor.fontVariations": false,
    "Codegeex.Privacy": true,
    "Codegeex.Comment.LanguagePreference": "中文",
    "editor.stickyScroll.enabled": false,
    "[css]": {
        "editor.defaultFormatter": "vscode.css-language-features"
    },
    "editor.codeActionsOnSave": {
        
    }
}

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

flutter大佬

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值