WebStorm没有打破长线

问题描述 投票:0回答:1

我当前正在使用WebStorm 2019.3.4,并且在Angular项目中,当尝试按CTRL + ALT + L重新格式化代码时,我不能中断较长的行。

我具有IDE和TypeScript的默认配置。

我想打破的长行示例:

export const countyList = [{
   countyName: 'Alachua',
   taxRate: '0.01',
   zipCodeList: ['32601', '32602', '32603', '32604', '32605', '32606', '32607', '32608', '32609', '32610', '32611', '32612', '32613', '32614', '32615', '32616', '32618', '32627', '32631', '32635', '32641', '32643', '32653', '32654', '32655', '32658', '32662', '32667', '32669', '32694']
}];
typescript intellij-idea ide webstorm
1个回答
0
投票
数组的默认格式化行为是不包装它们。您可以使用以下选项自行配置:

options

© www.soinside.com 2019 - 2024. All rights reserved.