Confessions of a code junkie
 
Thursday, June 05, 2008

Quick Fix - Missing Using Statements
 
Do yourself a favor, next time you have a build error that says something like: The type or namespace name 'XYZ' could not be found (are you missing a using directive or an assembly reference?). Double click the error (which will highlight the unknown type) then hit Alt+Shift+F10. This will bring up a dropdown that has all of the types that match that class name and hitting enter will automatically add the appropriate using statement. Thank you Visual Studio!



Thursday, June 5, 2008 - 1:03 PM CST - Permalink kick it on DotNetKicks.com   Comments [1] -
Tags: Tips and Tricks


Thursday, June 05, 2008 3:41:58 PM (Central Standard Time, UTC-06:00)
With ReSharper, it will automatically highlight the offending text in red (prior to compilation), to which you can just hit alt + enter to automatically import the appropriate namespace. :-)
Comments are closed.
 


All Content © 2008, Jon von Gillern
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.


 


Tags

Archive

Blogroll