Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refactor menu missing from 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 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.

like image 782
Mr. Young Avatar asked Jul 24 '15 16:07

Mr. Young


People also ask

How do I enable refactoring in VS code?

Code Actions = Quick Fixes and refactoringsClicking on the Code Action lightbulb or using the Quick Fix command Ctrl+. will display Quick Fixes and refactorings. If you'd just like to see refactorings without Quick Fixes, you can use the Refactor command (Ctrl+Shift+R).

What is Refactor in Visual Studio?

Applies to: Visual Studio Visual Studio for Mac Visual Studio Code. Refactoring is the process of modifying code in order to make it easier to maintain, understand, and extend, but without changing its behavior.

Is visual studio used for refactoring the code?

Visual Studio provides several tools to help you write, edit, and refactor your code.


1 Answers

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#)

like image 87
Kritner Avatar answered Oct 02 '22 15:10

Kritner