Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable Visual Studio 2015 lightbulb when renaming a field?

I've done everything listed in this answer: https://stackoverflow.com/a/31614259/602114, but the lightbulb still pops up whenever I rename a private field, in this case from db to _db:

lightbulb

Clicking on the lighbulb suggests performing "rename" refactor action.

refactor suggestion

However that's exactly what I've just done using ReSharper! This suggestion pops up every time I rename a field that does not have any references, and when I perform ReSharper refactor action, making it completely redundant.

Is there any way to turn it off?

like image 728
ikh Avatar asked Sep 27 '15 13:09

ikh


1 Answers

In order to suppress the VS lightbulb via ReSharper, you need to go to:

ReSharper -> Tools -> Code Inspection (make sure Enable code analysis is checked), and then click the Do not show VS lightbulb. Note this will suppress the lightbulb completely (which is redundant anyway if you use R#).

enter image description here

like image 119
Yuval Itzchakov Avatar answered Nov 07 '22 18:11

Yuval Itzchakov