vscode template中设置不换行
{ "workbench.colorTheme": "Dark-Dracula", "workbench.iconTheme": "vscode-icons", "editor.tabSize": 2, "files.autoSaveDelay": 4, "editor.formatOnSave": true, "window.zoomLevel": 0, "workbench.statusBar.visible": true, "vetur.format.defaultFormatter.html": "js-beautify-html", "prettier.singleQuote": true, "vetur.format.defaultFormatter.js": "prettier", "prettier.semi": false, "prettier.proseWrap": "preserve", // 是否要换行 "vetur.validation.template": true, "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_line_length": 120, "wrap_attributes": "auto", "end_with_newline": false } } }
打开file --prefrence- settings 像上面如下设置
"vetur.format.defaultFormatter.js": "prettier",
"prettier.proseWrap": "preserve", // 是否要换行比较重要记得配置完要重启一下vscode
相关推荐
Yvettre 2020-09-15
小焊猪web前端 2020-11-04
changcongying 2020-11-02
azhedashuaibi 2020-09-15
zhongfuyu 2020-08-16
lichuanlong00 2020-08-15
gsl 2020-08-15
mmwalker 2020-08-11
山有木兮卿有意 2020-08-03
Java编程语言学习 2020-07-29
举 2020-07-28
sshong 2020-07-19
fushilin 2020-07-05
80296630 2020-07-04
风雨断肠人 2020-06-14
ningningmingming 2020-06-14
hualala 2020-06-13
choupiaoyi 2020-06-13
Wytheme 2020-06-11