When creating a new class, Visual Studio automatically adds using statements. How do I control what it puts there or stop it from doing this?
A:
Do Add/New Item/Code/CodeFile
instead. An empty class file will be created.
Robert Harvey
2009-10-04 00:26:11
A:
This might not be exactly what you want, but it will work if you want to cleanup any unused usings:
Edit->IntelliSense->Organize Usings->Remove Unused Usings
Taylor Leese
2009-10-04 00:27:44
This is also a useful item to create a keyboard shortcut for.
Taylor Leese
2009-10-04 00:29:31
+5
A:
See this article on customizing your Visual Studio template files: http://davidhayden.com/blog/dave/archive/2005/11/05/2556.aspx
Cade Roux
2009-10-04 00:28:37
Thanks, the other options below are nice, but this was exactly what I wanted.
esac
2009-10-04 01:05:56