Skip to content

Tip 2.19: You can remove unused using statements

September 27, 2014

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

In C#, there’s the option to remove any of your unused using statements. This option is especially helpful if you’re reusing some sort of template over and over again. Instead of having to comment out each line, compile, see whether the compile was successful, and then either remove or uncomment the line, you can bring up the editor context menu (just right-click in the editor) and choose Organize Usings–Remove Unused Usings. This will do all the hard work for you.

Happy Programming! =)

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: