Vs .net go to parent class (shortcut)

Is there an easy way to open the parent class code file in visual studio.

I know I can use inheritance and go to definition to go to the base class in C #. But in vb.net, inheritance is hidden in the constructor code for a lot of files that I am working on and I am looking for an easy way to expose the parent class.

Bonus points for anyone giving me the ability to jump to parent class function over overloaded functions.

+2


source to share


3 answers


Unfortunately, there is no shortcut keyboard or main command that I know of that will take you to the parent of the current class.

The only keyboard style shortcut I can think of for this scenario is the following



  • Enter "MyBase"
  • Press the Goto Definition key combination (I can't remember it from my head).

Not exactly what you are looking for as it modifies the current file, but this is the closest I can think of.

+1


source


Out of the box, I think not. But if you have some money to read well , install Resharper . It will have visual aids for a code editor that will allow you to perform this operation.



+1


source


As smink mentioned, the only way I know of to accomplish this action is through the Resharper Visual Studio extension.

If you already have Resharper, the hotkey you're looking for is:

Alt + Home

You can change it by changing the following in the Visual Studio Keyboard shortcuts menu:

ReSharper.ReSharper_GotoBase

Purchasing this extension solely for this problem is probably not a desirable solution, those who already own it will hope it will be useful.

+1


source







All Articles