How to turn off graying out unused usings?

后端 未结 2 1075
一个人的身影
一个人的身影 2021-01-12 07:02

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 / s

2条回答
  •  梦毁少年i
    2021-01-12 07:40

    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).


提交回复
热议问题