Refactor menu missing from Visual Studio 2015

Mr. Young picture Mr. Young · Jul 24, 2015 · Viewed 45.9k times · Source

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 EditRefactor.

I have tried to reset my Visual Studio settings back to default using menu ToolsImport and Export Settings and that didn't bring the menu back either.

Answer

Kritner picture Kritner · Jul 24, 2015

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:

Select parts to extract

Right click

Right click

Quick actions

Quick actions

Click extract Method

Click extract method

I think they've changed it to feel more "ReSharper"ey. All of the functionality should still be there however.

Here's more information on refactoring in Visual Studio 2015 - hopefully this helps! Refactoring (C#)