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
<modulename="IllegalImport" /><!-- defaults to sun.* packages -->
I would like the reformat to be
<!-- defaults to sun.* packages -->
<modulename="IllegalImport" />
instead of
<modulename="IllegalImport" />
<!-- defaults to sun.* packages -->
note: obviously I've turned off whitespace sensitivity.
I feel like this would be a sensible default with whitespace sensitivity turned off, but an option would be nice too. I feel like programming convention is, comments to the right affect code to the left. Comments before affect code below. So moving the comment to be after changes the ... semantics.
Alternative, or maybe in addition to, if you could leave the comment alone if it's not making the line too long.
Activity
fbridault commentedon Apr 23, 2024
I would also love that...
Even better, if I could make a wish, ideally, by default, move it on top and optionally, preserve it as it is.
kddnewton commentedon Apr 23, 2024
I'm not going to make a configuration option for this, but I am open to changing the default behavior here. Are we okay with saying that:
gets reformatted to:
but
stays the same? As in, they have to be "touching" in order to get this special behavior?
fbridault commentedon Apr 23, 2024
Thank you for your answer.
Yes, for me that would look perfectly acceptable!
xenoterracide commentedon Apr 23, 2024
Works for me