Visual Studio Code 配置格式化自动对齐等

2021/11/20 23:13:36

本文主要是介绍Visual Studio Code 配置格式化自动对齐等,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

操作步骤如下:

将一下代码复制到里面保存,退出重新启动,完成操作

{
        "breadcrumbs.enabled": true,
        // 设置全部的文件都是4个字符缩进
        "editor.detectIndentation": true,
        // 关闭vscode自动更新提示
        "update.mode": "none",
        // 设置在保存文件时对代码进行格式化
        "editor.formatOnSave": false,
        // beautify的设置*****start
        "[javascript]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "[html]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "[css]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "[less]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "[vue]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "search.followSymlinks": false,
        "javascript.updateImportsOnFileMove.enabled": "always",
        "beautify.config": "",
        "beautify.language": {
            "html": [
                "htm",
                "html",
                "vue"
            ],
            "js": {
                "type": [
                    "javascript",
                    "json"
                ],
                "filename": [
                    ".jshintrc",
                    ".jsbeautify"
                ]
            },
            "css": [
                "css",
                "scss",
                "less"
            ]
        },
    "editor.fontSize": 16,
        "px2rem.rootFontSize": 37.5,
        "px2rem.isNeedNotes": false,
        "cssrem.rootFontSize": 24,
        "px2vw.toFixedNum": 3,
        "px2vw.width": 375,
        "cssrem.fixedDigits": 3,
        "cssrem.autoRemovePrefixZero": false,
        "git.ignoreWindowsGit27Warning": true,
        
    }
    }

 



这篇关于Visual Studio Code 配置格式化自动对齐等的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程