VSCode格式化程式碼後,設定程式碼不自動換行
阿新 • • 發佈:2022-04-20
1、ctrl
+,
開啟設定;
2、點選工作區,點選右上角 開啟設定(json)
3、輸入選擇程式碼,並儲存;
內容程式碼如下:
{ "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.defaultFormatter.js": "vscode-typescript", "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_line_length": 240, "wrap_attributes": "auto", "end_with_newline": false }, "prettyhtml": { "printWidth": 100, "singleQuote": false, "wrapAttributes": false, "sortAttributes": false } }, }
1、ctrl
+,
開啟設定;
2、點選工作區,點選右上角 開啟設定(json)
3、輸入選擇程式碼,並儲存;
內容程式碼如下:
{ "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.defaultFormatter.js": "vscode-typescript", "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_line_length": 240, "wrap_attributes": "auto", "end_with_newline": false }, "prettyhtml": { "printWidth": 100, "singleQuote": false, "wrapAttributes": false, "sortAttributes": false } }, }