It will be there in the upcoming pre-release version. Most likely during tomorrow.
formatting keep braces in the same line
Boom! Thank you. You guys are the best!
Thank you, Ray!
You should be able to test it out right now - the pre-release 1.18.10855
has two more code styles. allman
and k&r
Please let us know how it goes ;-)
The only use case that you are missing is the if/else. The else like should read } else { and not go to a new line.
Other then that I have not found any other issues.
Great! Thank you, Ray, for trying it.
We'll handle this case too!
And it's the same for catch and finally. Will be done.
I found one more.
This is what I would expect
Instead I get this
Found another one
Formatted
Notice it moved the fund attribute inline, the added space in the fund string and the new line in the disease attrbiute.
Hi John,
Thank you for reporting those issues. They've all been addressed in the pre-release 1.18.10878
- available now.
If you run into anything else... you know where to find us :-)
Thank you!
All the class related formatting is perfect! I am loving it!
There is one issue with formatting HTML where its loosing the indents and multiline.
Here is a nice to have if possible.
Found another one.
- Edited
This one behaves according to the VS Code HTML formatter settings.
You can configure it with html.format.wrapAttributes
in settings.json
auto
: Wrap when the line length is exceededforce
: Wrap all attributes, except firstforce-aligned
: Wrap all attributes, except the first, and align attributesforce-expand-multiline
: Wrap all attributesaligned-multiple
: Wrap when line length is exceeded, align attributes verticallypreserve
: Preserve wrapping of attributespreserve-aligned
: Preserve wrapping of attributes but align
So preserve
or preserve-aligned
should do the trick.
You can find the list of all settings at https://code.visualstudio.com/docs/languages/html#_formatting
Ray Makes sense. I'm adding this to our list! Thank you!
Ray will be done
1.18.10887 brought back the same issue from https://community.devsense.com/d/530-formatting-keep-braces-in-the-same-line/15
The previous release this worked perfectly with "html.format.wrapAttributes": "preserve".
Sorry about the regression. The next pre-release will get rid of this one for good.
Found one when braces are no applied
Space after ::class
Hi Ray,
We've fixed most of the issues you've reported in the last update - one more left for the next one.
Thank you!