Menu

#5 Format selected code only

open
nobody
None
5
2003-03-13
2003-03-13
Anonymous
No

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).

Discussion

  • Anthony Steele

    Anthony Steele - 2003-10-12

    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

     
  • a2z

    a2z - 2003-12-10

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.