I am using eclipse 2.1 and trying to format the code. I am able to format the entire file, I mean when I right click the mouse on source option I get a format option on clicking which the code gets formatted. But if I want to format only a portion of the code by selecting the code. I do not get the format options at all and therefore not able for format this. Can anyone please let me know how to format selected portion of code ?