vue工程化开发代码自动格式化

{
    "files.autoSave": "onFocusChange",
    "window.zoomLevel": 1,
    "vetur.validation.template": false,
    "editor.wordWrap": "on",
    "px2rem-plus.comments": false,
    // 以下为stylus配置
    "stylusSupremacy.insertColons": true, // 是否插入冒号
    "stylusSupremacy.insertSemicolons": true, // 是否插入分好
    "stylusSupremacy.insertBraces": true, // 是否插入大括号
    "stylusSupremacy.insertNewLineAroundImports": true, // import之后是否换行
    "stylusSupremacy.insertNewLineAroundBlocks": false,
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[css]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[javascript]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[scss]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "editor.formatOnSave": true,
    "prettier.tabWidth": 4,
    "beautify.config": "",
    "beautify.ignore": "",
    "beautify.language": {
        "js": {
            "type": [
                "javascript",
                "json",
                "jsonc"
            ],
            "filename": [
                ".jshintrc",
                ".jsbeautifyrc"
            ]
        },
        "css": [
            "css",
            "less",
            "scss"
        ],
        "html": [
            "htm",
            "html",
            "vue"
        ]
    },
    "[vue]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "editor.foldingStrategy": "indentation", // 两个选择器中是否换行
}


版权声明:本文为vileman原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。