Hi,
I am finally back to India, and it is always good to be at home.
This week is a bit busy, catching up with my pending work.
Today while writing a new script I was checking few of my Old scripts. And i realised that my old scripts are bit hard to read , why? because of improper formatting.
Formatting? why? why we need a formatting in a script? this is not a Word, PowerPoint document.
Yes, formatting is a essential and key part of the scripting, more neat and properly formatted your script is , more it is easy to read and easy to maintain.
For example.
versus
Now you can see that, reading script is bit easy in the second screenshot rather then the first one. This create a neat and clean type of scripts , rather then a messy one.
few tips and shortcuts.
- If you want to increase the indent of whole script, then just select whole script code and Press TAB.
- If you want to decrease the indent of whole script, select the script and press SHIFT + TAB
- To indent a single line, just press TAB
- To separate two section / function in the script, you can use a visual seprater like this, so that you know, another section is started.
That’s all for now.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.