vscode代码格式排列_vsCode格式化代码时格式问题

用vsCode写vue,格式化时这种都换行了,看着好难受,想问怎么设置一下,让这种不换行显示 ?

v-model="configQueryParam.vehicleType"

:placeholder="$t('priceCoefficientConfig.vehicleType')"

>

v-for="item in vehicleTypeData"

:key="item.value"

:label="item.label"

:value="item.value"

>

this.pageSize = result.pageSize

? result.pageSize

: this.pageSize;

相关插件装了beautify,prettier,vetur,自定义的设置如下:

{

"editor.fontSize": 18,

"git.ignoreMissingGitWarning": true,

"editor.minimap.maxColumn": 60,

"prettier.disableLanguages": [],

"vetur.validation.template": false,

"workbench.colorTheme": "Default Light+",

"element-helper.version": "2.4",

"editor.formatOnType": true,

"editor.detectIndentation": false,

"prettier.tabWidth": 4,

"editor.quickSuggestions": {

"strings": true

},

"vetur.format.defaultFormatter.html": "prettyhtml",

"vetur.format.defaultFormatterOptions": {

"prettyhtml": {

"tabWidth": 4,

}

},

"editor.wordWrapColumn": 120,

"editor.wordWrap": "on",

"files.autoSave": "onWindowChange",

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值