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

This C# program calculates and displays an upper triangular matrix based on user input. Problem Statement: The program takes the...
This C# program serves as a demonstration of bitwise operators, which are fundamental operators used for manipulating individual bits in...
This C# program is designed to interchange or swap the columns of a matrix. A matrix is a two-dimensional array...