How do you completely disable the light bulb in Visual Studio 2015? It reminds me of Clippy.
Light bulbs are icons in the Visual Studio editor that expand to display a set of actions, for example, fixes for problems identified by the built-in code analyzers or code refactoring.
1 Answer. Show activity on this post. You can disable CodeAnalysis for a project in the project properties> tab Code Analysis. For more details check this doc https://docs.microsoft.com/en-us/visualstudio/code-quality/disable-code-analysis?view=vs-2019.
You can also press Ctrl+. anywhere on a line to see a list of available Quick Actions and refactorings. To see potential fixes, select either the down arrow next to the light bulb or the Show potential fixes link.
The light bulb seems to be driven of an Analyzer. these can be manipulated via a Code Analysis Ruleset.
In project properties select the Code Analysis tab -
Then open and edit a Ruleset, these are under the Analyzers Microsoft.CodeAnalysis.CSharp.Features
, Microsoft.CodeAnalysis.CSharp
and Mirosoft.Analyzers.NativeCodeAnalysis
:
Managed Binary Analysis seems to be FxCop / Code Analysis which was in previous versions.
Change the rules to none, and the rules aren't fired anymore. Adding or using different Analyzers will result in the return of the light bulb however.
The created Ruleset can be applied to all projects as needed.
However, the light bulb is the replacement for the tool tip, so disabling everything would severly hamper the usefulness of Visual Studio as an IDE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With