Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off graying out unused usings?

How (supposing it's even possible) to turn off the Visual Studio 2015 feature to gray out unused usings (usings in C#, Imports in VB) ?? I like all the other highlight / syntax checking / auto compile stuff in VS, I'm only trying to turn this off specifically to graying out unused usings.

I can't seem to find an option for this specifically in the VS 2015 menus. If anybody is aware of such an option please advise as to location.

like image 204
cdahms Avatar asked Aug 21 '15 15:08

cdahms


1 Answers

You can disable it on a project-by-project basis. Open your project references > Analyzers and turn off IDE0005. This will disable the 'visual cue' (grayed out hint) but you will still be able to select the quick action 'Remove unnecessary usings' if you put the cursor on one of these. Don't think it's possible to disable this (and you really shouldn't anyway).

enter image description here


enter image description here

like image 171
Saragis Avatar answered Oct 13 '22 07:10

Saragis