Refactor menu missing from Visual Studio 2015

前端 未结 5 814
庸人自扰
庸人自扰 2021-02-01 11:35

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

5条回答
  •  暖寄归人
    2021-02-01 12:29

    You might need to build the project to get it to work.

    See Code Editing ASP.NET Web Forms in Visual Studio 2013 | Microsoft Docs. (If it is missing then the point is that I am using an example provided by Microsoft.). In Refactoring and Renaming see To extract a method in a C# page. When I follow the instructions I cannot find the feature to extract the code to a method. When I tried the Edit menu it said I did not have valid code. Then I built the project and the feature to extract the code was available and worked.

提交回复
热议问题