views:

43

answers:

2

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

I know i can use the inherits and go to defintion to go to the base class in C#. But in vb.net the inherits is hidden in designer code for a lot of files I am working on and I'm looking for a simple way to open the parent class.

Bonus points for whoever gives me a go to parent class function defintion over overloaded functions.

+1  A: 

Unfortunately there is no such keyboard short cut, or underlying command that I know of, which 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

  • Type "MyBase"
  • Hit the Goto Definition keyboard shortcut (can't remember it off the top of my head)

Not exactly what you're looking for since it changes the current file but it's the closest I can think of.

JaredPar
A: 

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

smink