We create a Web Form in Visual Studio, a .cs file means code file class is automatically create. That .cs file means class has default usings for namespace.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Step 1: Right Click in .cs File.
Step 2: Move on Organize usings.
Step 3: Click on Remove Unused Usings.

After that we have only those namespaces in the file these are using.

Ibrahim ErsoyPosted Apr 15, 2013, 10:48 AM
Nice tip.I didnt know that! i use Resharper instead of it.It changes color of unused statements to gray.
Rishikesh Kumar SinghPosted Feb 15, 2013, 8:44 AM
nice tip...