keyboard macro c++ methods shotrtcuts

  • Thread starter Thread starter marfi95
  • Start date Start date
M

marfi95

I love the F12 key under C++ where I can go directly to a method even
if it is overloaded. What I was wondering is if there is a way through
a macro or something that already exists that would let me put the
cursor on a method and return a list of methods that call that method.
It wouldn't need to be nested, but just the immediate calling method
would be excellent.

Thanks,
Mark
 
I'm unaware of such thing in VS.NET... maybe someone has coded it and will lend it to you?

For now, try right-mouse clicking the reference and selecting "go to reference".
 
On my version of VS 2003, the F12 key does what it's supposed to (Goes to
the definition under the cursor), and then I use the (CTRL -) to jump back
to the previous position. Maybe there's a setting for it?

Lance
I love the F12 key under C++ where I can go directly to a method even
if it is overloaded. What I was wondering is if there is a way through
a macro or something that already exists that would let me put the
cursor on a method and return a list of methods that call that method.
It wouldn't need to be nested, but just the immediate calling method
would be excellent.

Thanks,
Mark
 
What I'm really looking for is a way to determine what objects/methods
in the system are calling the method I'm positioned on. If I'm
positioned on a call to another object, I can hit F12 to go directly to
that method, but lets say I'm on the signature line of a method, I want
to know everybody that calls me.

For example: (I know this is not accurate, but just for simplicity)

void obj1::method1()
{
obj2.method1()
}

void obj2::method1() < -- If I had the cursor on this line, i want
to know that it was called from obj1::method1
{

}

Does that make any sense ?
 
Alt + F12 seems to work like this. (At least on mine) It opens the Find
Symbol dialog, and lists the method, and then branches out to show the
places it's called.

It only seems to work with C# projects though, it doesn't work with my
VB.NET projects, it just shows the declaration.

Lance


What I'm really looking for is a way to determine what objects/methods
in the system are calling the method I'm positioned on. If I'm
positioned on a call to another object, I can hit F12 to go directly to
that method, but lets say I'm on the signature line of a method, I want
to know everybody that calls me.

For example: (I know this is not accurate, but just for simplicity)

void obj1::method1()
{
obj2.method1()
}

void obj2::method1() < -- If I had the cursor on this line, i want
to know that it was called from obj1::method1
{

}

Does that make any sense ?
 
Back
Top