【小記事】如何設置vscode代碼格式化時不要自動換行

最近一格式化就給我分好多行,好氣哦(`ヘ´)=3html

在setting.json中添加以下代碼:json

"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typ=script",
"vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "auto"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
 },

---------------END。spa

相關文章
相關標籤/搜索