Go to declaration

I just noticed tonight while migrating some Visual Basic 6.0 code to Visual
Basic .NET that Go To Declaration (a Visual Studio shortcut) is greyed out
in the context menu and ReSharper's Go To Definition is not in the menu at
all. (I do get Go To Definition when editing C# code but not in VB.NET
code).

After perusing the context menu rather confusedly several times, I noticed
Go To Inheritors and clicked it just to see what it would do (even though
the method doesn't inherit from anything). Even more confusing, it went to
the declaration for the method I wanted.

I bring this up because of the confusion factor I felt trying to find an
obvious entry in the context menu to go to a method declaration. It seems to
me that Go To Inheritor is logical if I want to find methods that inherit
from a base class, but it doesn't make sense to go back up the call chain.

1 comment
Comment actions Permalink

I've since discovered that Go To Declaration/Go To Definintion are enabled
seemingly at random and disappear on the next right click. That is,
sometimes I can right click a method twice and Go To Definition is enabled
the first time but not the second time. Go To Inheritor is always enabled
even if the method or property has no inheritors. Even more confusing, Go To
Inheritor always goes to the method declaration instead of to an inheritor.

"Jetbrains" <lothan@newsguy.com> wrote in message
news:f98u0t$q4l$1@is.intellij.net...
>I just noticed tonight while migrating some Visual Basic 6.0 code to Visual
>Basic .NET that Go To Declaration (a Visual Studio shortcut) is greyed out
>in the context menu and ReSharper's Go To Definition is not in the menu at
>all. (I do get Go To Definition when editing C# code but not in VB.NET
>code).
>

After perusing the context menu rather confusedly several times, I noticed
Go To Inheritors and clicked it just to see what it would do (even though
the method doesn't inherit from anything). Even more confusing, it went to
the declaration for the method I wanted.

>

I bring this up because of the confusion factor I felt trying to find an
obvious entry in the context menu to go to a method declaration. It seems
to me that Go To Inheritor is logical if I want to find methods that
inherit from a base class, but it doesn't make sense to go back up the
call chain.


0

Please sign in to leave a comment.