Visual Studios 2008

Lately, I’ve been programming some C# using the free edition of Visual Studios 2008. Now I’ve noticed a lot of good auto generating code when you are doing some common functions. I remember when I used to go to .NET user groups that they talked about how 2005 edition made coding much faster and I really believe it. So far there are two things that seem to have improved my coding:

  1. code snippets – This is basically like an alias in unix shells. Typing something like “mbox” and then pressing the “TAB” key twice will automatically spit out MessageBox.Show(“TEXT”); and has “TEXT” highlighted with cursor.
  2. common functions – Things like while, for, if, and else are a few statements that will autogenerate if you do the double “TAB” after typing those words. The “if” statement will automatically highlight the conditional (which is “true”) so that you can easily put anything there. What’s super cool is the for loop because it’ll fill in (int i = 0;  i < length; i++) and will have highlighted i and length so that you can easily edit the variable and the comparison with just the “TAB” key.

Pretty sweet might I add. I wonder if Eclipse does something similiar, I’ll have to check that out the next time I program some java.

This entry was posted in software and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *