VS 2015的灯泡还能出现吗?

时间:2016-08-17 11:13:00

标签: visual-studio-2015 resharper resharper-2016 visual-studio-lightbulbs

我在2016年与Resharper一起使用VS2015。

我在R#设置中禁用了Visual studio灯泡:

enter image description here

也在这里:

enter image description here

但是当我点击某些关键字时它仍会出现:

点击" public"

enter image description here

点击" HttpresponseMessage"

enter image description here

点击" GetPDF"

enter image description here

问题

我如何完全停止灯泡功能?

NB - The related answer didn't help

另外: 我已经禁用了Resharper,现在我没有看到任何灯泡。发生了什么事?

1 个答案:

答案 0 :(得分:2)

屏幕截图中显示的指标是ReSharper的“灯泡”。标记为“不显示Visual Studio灯泡”的ReSharper选项中的复选框将隐藏Visual Studio自己的灯泡功能,以便仅显示ReSharper。清除此复选框后,您有时会看到两个单独的灯泡 - Visual Studio和ReSharpers。此复选框合并两者,将Visual Studio的灯泡项目拉入ReSharper的菜单(其中包含更多功能,例如搜索操作的类型)。

为了删除ReSharper的灯泡,您需要在ReSharper→选项→编辑器外观中选中“不显示”单选按钮。您不会再看到灯泡,但使用 Alt + Enter 仍然有效。

Action Inidcator preferences in ReSharper Options