Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

Don't you get bored typing loops like this by hand:

for (int i = 0; i <= 10; i++)
        {
        }

Visual Studio.NET 2005 BETA II let's you write your statement more quickly. Simple type for and press TAB two times and it will write the rest of the code for you. The following code is generated by pressing the TAB two times after writing for. After the loop is writen you can press TAB to navigate inside the loop and change the values.

for (int i = 0; i < length; i++)
        {
            
        }

Do you want to write the reverse loop? Just type forr and press TAB two times.

 for (int i = length - 1; i >= 0; i--)
        {
            
        }

How about a foreach loop? Follow the same procedure.

 foreach (object var in collection_to_loop)
        {
            
        }

You can do all the statements in this way. You know what will be really cool if you type MyFunction and it will write the whole damn custom function for you. That will be Shiz Biz!



 

powered by IMHO

 

Posted on Wednesday, October 12, 2005 12:12 AM | Back to top


Comments on this post: Autocomplete feature in .NET 2.0 (This is so cool)

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net