Did you ever find yourself wondering which namespace a class belongs to? One would open the help and use index functionality to find it. Now the process is a lot easier. Just type the class name into the code and, if class is referenced and its namespace isn’t reachable, a little red box will appear at the bottom right side of the class name. This red tiny box is a huge benefit. Hover over it and it will give you two options: either include a proper using statement or prefix the class name with its namespace.
Once you try it you’ll love it.
I’ve ben using ReSharper for some time now, and it has a similar function. With Alt-Enter it addsa missing using. One hell of a time-saver!
I’m glad VS2005 will include this and other shortcuts by default.
Good to know. Even CodeRush has similar functionality through an addin writen by Marc Hoffman.
http://www.devexpress.com/Products/NET/Coderush/Community.xml
It is such a valuable functionality 🙂