Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refactoring options in Visual Studio 2010 differ between C# and VB

In VS2010 C#, when I right-click there is "Refactor" menu with following options:

  • Rename
  • Extract Method
  • Encapsulate Field
  • Extract Interface
  • Remove Parameters
  • Reorder Parameters

Are these options available in VS2010 VB.Net? All I can see is "Rename" when I right click?

like image 356
friend Avatar asked Oct 14 '11 00:10

friend


People also ask

What is refactoring 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 Code supports refactoring operations (refactorings) such as Extract Method and Extract Variable to improve your code base from within your editor.

What is code refactoring in C#?

A term coined by Martin Fowler, code refactoring allows you to change the code structure without changing or affecting what the code itself actually does. For example, changing a variable name or packaging a few lines of code into a method are code refactoring.

What is the function of refactoring feature of Visual Studio 2012?

This refactoring option allows you to remove additional parameters from a method and update the references everywhere that has been used. Generally, you need this feature to remove unused parameters from the methods.


1 Answers

"Rename" is the only refactoring VB.Net has. C# is definitely more robust.

Check out Code Rush Xpress. It's a slimmed down, free version of their full tool but it may provide some of your missing refactorings.

Personally, I use and absolutely love Resharper. Well worth the money IMO.

like image 82
codeConcussion Avatar answered Oct 05 '22 07:10

codeConcussion