Visual Studio 2015中缺少重构菜单 [英] Refactor menu missing from Visual Studio 2015
问题描述
我在Visual Studio 2015中找不到右键单击上下文菜单时遇到麻烦.我知道我的项目或正在处理的文件没有问题.我可以在Visual Studio 2013中找到右键单击上下文重构菜单.但是,在Visual Studio 2015中,右键单击上下文菜单中没有重构上下文菜单.
I am having trouble finding the right-click context menu in Visual Studio 2015. I know that nothing is wrong with my project or the file I am working. I can find the right-click context refactor menu in Visual Studio 2013. However, in Visual Studio 2015 there isn't a refactor context menu in the right-click context menu.
它去哪了?我该如何找回它?
Where did it go? How do I get it back?
您的建议不能包含菜单编辑→重构.
Your suggestion cannot include menu Edit → Refactor.
我尝试使用菜单工具→导入和导出设置将Visual Studio设置重置为默认设置,但也没有将菜单恢复.
I have tried to reset my Visual Studio settings back to default using menu Tools → Import and Export Settings and that didn't bring the menu back either.
推荐答案
一些重构工具已经被重新定位,或者至少可以以不同于以前的方式进行访问.
Some of the refactoring tools have been relocated or are at least accessible in a different manner than they were previously.
以提取方法重构为例,您仍然可以使用此功能;只是做的与以前不同:
Using the extract method refactor as an example, you can still use this function; it is just not done the same as before:
右键单击
快速动作
点击提取方法
我认为他们已经对其进行了更改,以使其更具"ReSharper"的感觉.但是,所有功能仍然应该存在.
I think they've changed it to feel more "ReSharper"ey. All of the functionality should still be there however.
以下是有关Visual Studio 2015中重构的更多信息-希望这会有所帮助! 重构(C#)
Here's more information on refactoring in Visual Studio 2015 - hopefully this helps! Refactoring (C#)
这篇关于Visual Studio 2015中缺少重构菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!