Go to Definition in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi
I am new to C#. In VB 6.0 we can find the defenation of any user defined procedure (or function) by selecting right click and Defenation in the menu item. In C# also I can see that, but once the cursor goes to that defination, I want to come back to the calling function also. In VB 6.0 if we press Ctl+F2 It will come back to the calling procedure. Is there is any similar key is available in C#? Please let me know

thanks
babu
 
You can right-click on the method name and select "Go To Reference" or use
Shift-F12.

- Noah Coad -
Microsoft MVP

Babu said:
hi,
I am new to C#. In VB 6.0 we can find the defenation of any user
defined procedure (or function) by selecting right click and Defenation in
the menu item. In C# also I can see that, but once the cursor goes to that
defination, I want to come back to the calling function also. In VB 6.0 if
we press Ctl+F2 It will come back to the calling procedure. Is there is any
similar key is available in C#? Please let me know.
 
I could not find it either when I first switched to .NET. I emulated the
exact behaviour you are talking about by creating a couple of macros in the
Visual Studio IDE and assigning to each the shortcut keys that you
mentioned. I'd post the macros for you here, but I lost them when I rebuilt
my machine.

The first macro emulates right-clicking and then selecting the "Go To
Definition" popup menu option.
The second macro emulates selecting from the main menu View | Navigate
Backwords (or Ctrl + -).

-Jeff


Babu said:
hi,
I am new to C#. In VB 6.0 we can find the defenation of any user
defined procedure (or function) by selecting right click and Defenation in
the menu item. In C# also I can see that, but once the cursor goes to that
defination, I want to come back to the calling function also. In VB 6.0 if
we press Ctl+F2 It will come back to the calling procedure. Is there is any
similar key is available in C#? Please let me know.
 
Hi Babu,

Press the CTRL key and the - (minus) key together which will take you back
to the last position.

Gary

Babu said:
hi,
I am new to C#. In VB 6.0 we can find the defenation of any user
defined procedure (or function) by selecting right click and Defenation in
the menu item. In C# also I can see that, but once the cursor goes to that
defination, I want to come back to the calling function also. In VB 6.0 if
we press Ctl+F2 It will come back to the calling procedure. Is there is any
similar key is available in C#? Please let me know.
 
Hi jr_babu,

I found that you re-post this issue in this group. Do you feel the
community's reply is not complete?

In that issue, the community members have added replies to you. Please
follow up there.
I will monitor the issue there. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top