exk*_*730 6 webstorm typescript
每次我"重新格式化代码"时,WebStorm都会在任何空的花括号之间放置一个新行.例如,如果我有这个代码:
export class Example {}
我重新格式化代码(Command + Option + L在mac上),我最终得到了这个:
export class Example {
}
如何阻止编辑器插入新行?WebStorm版本是2016.2
使用这些设置它似乎工作 - IDE不会将这些代码分成多行,但将保持原样.
Settings/Preferences | Editor | Code Style | TypeScript --> Wrapping and BracesKeep when reformatting | Simple block in one line - 检查Braces placement | In class declaration - "行结束"PhpStorm 2016.3的截图...但在2016.2应该是相同的.
| 归档时间: |
|
| 查看次数: |
841 次 |
| 最近记录: |