Pages

Tuesday 15 November 2011

Format your code


Well this will tell you to format the program automatically. As a developer everyone should follow the code with the neat format. Or else it won’t be nice to view. As a beginner I didn’t know this shortcut to format. Later I found the shortcut and method to format automatically for the program. I just want to share it here. It’s mainly for beginners .
Shorcut Way :
Press ESC in keyboard. On the right side of your monitor you can The option of Format .  Then press Enter . Its the shortcut. If you cant able to find Format  options on the right side then go for the following method.
Windows-> preferences -> Java (left side)->Editor ->Save action->perform the selected options on save (Tick the check box)->Format Source code (Tick the check box) -> Format all lines (Tick the check box)
Click apply and Ok.
Now your code will be formatted automatically. You can get the neat format of your codeJ

No comments:

Post a Comment