Wednesday, February 20, 2008

Formatting

All programmers know that formatting of a code is very important in any code. This makes the program more clear,especially when the program is too lengthy. On another platforms,the programmer needs to take the extra effort to do this. However,netbeans simplifies everything for you. To make my point clear,consider the screenshot below.






I suggest you to follow the steps carefully to format your code.

1) Select your entire program with the right click of a mouse ( the picture will be as shown above).

2) Right-click and click on the option which reads "format". The shortcut is Alt+Shift+F.

Simple,isn't it?? Just by following these two simple steps,one can arrive at a correct formatted code!

No comments: