Very cool VS.NET Macro!

I have never loaded a VS.NET macro before but I saw a link for the TypeFinder Macro  listed in The Daily Grind 161Jan Tielen did a great job with this!

If you are writing a class that uses an object that you have not included in your Imports/using section you can do two things: 

1.  You can hit hotkey #1 (namespace function) which will convert the class name to include the namespace.  (i.e. convert OleDbCommand into System.Data.OleDb.OleDbCommand) 

2. You can hit hotkey #2 (directive function) which will add that namespace to the Imports/using section of your class. (i.e. add "using System.Data.OleDb.OleDbCommand;" to the top of your c# class.) 

I will forever be grateful to Jan Tielens for this addition as I got very accustomed to having this functionality when I did Java programming with Eclipse!

** Hint for Whidbey developers: This would be a very cool addition to the next version of VS.NET as well !!

 

Recent Posts

Tag Cloud

No Comments