Indenting multiple lines of code

As from the day one of been a programmer it is advised to indent your code so that it is easy to read and easy to understand. In Microsoft Dynamics NAV Development Environment this feature is available and some of new developers does not know how to use this functionality. 
If you do not indent your code then it will look like below and will be bit hard to understand. This will be a problem if you have more than one inner loop. 


To indent the code
Select the code section you want to indent and then press Tab. It will indent your code two spaces from the left margin. Refer below image and see how the code indented and it is more readable.


To Un-indent 
If you want to un-indent your code then select the code section once again and press Shift+Tab. This will move your code one space back to the left margin. 


Thank you and Regards,
Tharanga Chandrasekara.

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?