Is there any way to generate a warning in VS2008 for unused using statements? I know there is the Edit->Intellisense->Organize Usings->Remove Unused Usings, but it would be nice if this were a compile time warning.
Is there any way to generate a warning in VS2008 for unused using statements?
Share
If you use ReSharper, by default, it’ll show the unused usings in a different color (as a warning in the error analysis sidebar), and if you highlight them, you can change them to show as errors. Unfortunately, it won’t prevent it from compiling, but it does alert you that they’re not being used.