Every time I "Reformat Code", WebStorm will place a new-line in between any empty curly braces. For example, if I have this code:
export class Example {}
and I reformat the code (Command + Option + L
on mac), I end up with this:
export class Example {
}
How can I stop my editor from inserting a new line? WebStorm version is 2016.2
With these settings it seems to work -- IDE will not break such code into multiple lines but will leave as is.
Settings/Preferences | Editor | Code Style | TypeScript --> Wrapping and Braces
Keep when reformatting | Simple block in one line
-- checkedBraces placement | In class declaration
-- "End of line"Screenshot from PhpStorm 2016.3 ... but it should be the same in 2016.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With