You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to exclude some of the code blocks from default formatting approach. I used to use @Formatter:on and off for that, but it seems that it doesn't work with google-java-format.
Is there is any way to use it?
The text was updated successfully, but these errors were encountered:
Hi @kryczaatos. Sadly, I believe that it's both unsupported and an explicit non-goal of google-java-format to allow users to exclude code blocks from formatting, but I'm sure that someone on the google-java-format team can either correct me or clarify.
@kryczaatos I don't know what your situation is or why you want to exclude certain code blocks, but if you want to format some code just a bit differently, e.g. if google-java-format gives you a long-ish line like this, but you want it split into multiple lines:
I would like to exclude some of the code blocks from default formatting approach. I used to use @Formatter:on and off for that, but it seems that it doesn't work with google-java-format.
Is there is any way to use it?
The text was updated successfully, but these errors were encountered: