Format selected code only
Brought to you by:
anthonysteele
If I select code in the editor I'd like to have the
option to format this selection only instead of
formatting the whole unit. Could be an extra menu item
"Current selection" next to the "Current source file"
menu item.
The reason: if you have a source file where more than
one person is working with (not at the same time of
course) you might mess the code another one wrote if
you format the whole file. (I admit: this could be
resolved as well by a different app design and by
splitting up the code into serveral units).
Logged In: YES
user_id=66544
You can work around to achive this. Put a comment
//jcf:format=off
at the start of the unit, and put
//jcf:format=on
at the start of the section that you want to format and
//jcf:format=off
again at the end of the block
Logged In: YES
user_id=39747
Wow! While this is a very innocent request, I for one, would
be most surprised to see a living mortal with that kind of
extremely intimate knowledge of the IDE --other than perhaps
somewhere in the dungeons of Borland.