Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you disable the light bulb in Visual Studio 2015?

How do you completely disable the light bulb in Visual Studio 2015? It reminds me of Clippy.

like image 651
BowserKingKoopa Avatar asked Jul 22 '15 20:07

BowserKingKoopa


People also ask

What is the light bulb in Visual Studio?

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.

How do I remove quick actions from Visual Studio?

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.

How do I enable quick actions and refactoring in Visual Studio?

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.


1 Answers

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 - enter image description here

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.

enter image description here

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.

like image 192
NikolaiDante Avatar answered Oct 14 '22 10:10

NikolaiDante