VON#
Confessions of a code junkie
RSS
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
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. :-)
Nick Parker
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.
Home
Tags
Blend
Design
IADNUG
Projects
Stuff
Tips and Tricks
Wishlist
Archive
August, 2008 (1)
July, 2008 (2)
June, 2008 (2)
May, 2008 (2)
March, 2008 (2)
February, 2008 (8)
January, 2008 (4)
December, 2007 (6)
November, 2007 (2)
Blogroll
Eric Sink
Javier Lozano
Jeff Atwood
Joel Spolsky
Nick Parker
Paul Graham
Scott Hanselman
Tim Gifford