Unused namespaces in Different Color in Visual Studio 2015

Visual Studio 2015 Preview includes some nice features in the editor which were once available via the extensions or third party productivity tools. One such feature is the indication of the unused namespace in the C# file.

Unused namespaces in Different Color in Visual Studio 2015

Visual Studio 2015 Preview would display the unused namespaces in C# code in a different colour (grey) which indicates to the user that the namespace can be removed from the current page. Below is the screenshot that demonstrates this feature.

image

If you want to remove the unused namespaces from the page , you can do it by right clicking on the editor and selecting the “Remove Unnecessary Using” from the context menu.

image

    1 Comment

  1. Laki
    January 12, 2016
    Reply

    And how to change color for the unnecessary usings’ color?

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

C# Compiler Error CS0442 – ‘Property’: abstract properties cannot have private accessors Reason for the Error You’ll get this error...
This is a really simple one . Below is a simple example of an enum called “Designation” defined with the...
This blog post explain the usage of the Checked Block in .NET and how you can use them in Visual...