473,499 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

keyboard macro c++ methods shotrtcuts

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

Jul 21 '05 #1
5 1517
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".

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
<ma*****@yahoo.com> wrote in message news:11**********************@g14g2000cwa.googlegr oups.com...
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

Jul 21 '05 #2
Sorry, i meant "go to definition" -- oops :)

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
<ma*****@yahoo.com> wrote in message news:11**********************@g14g2000cwa.googlegr oups.com...
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

Jul 21 '05 #3
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
<ma*****@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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
Jul 21 '05 #4
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 ?

Jul 21 '05 #5
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
<ma*****@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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 ?
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6567
by: lamb2000 | last post by:
No one in the world knows the answer to my question! " Is it possible to emulate in Python for Linux the mouse and/or the keyboard?" I am coming from XP, where I have plenty of methods (AutoIt,...
9
2500
by: skearney | last post by:
When I was in boy scouts, as part of learning Morse code, I was told that the inventor of the typewriter originally put the letter 'e' under the left middle finger, just below its present position....
2
2906
by: Larry R Harrison Jr | last post by:
How do I disable, say, CTRL-O from opening a new database? I know how to remove special shortcuts in startup options, and how to create custom toolbars, but can't seem to get rid of (for instance)...
23
7673
by: herrcho | last post by:
What's the difference between STDIN and Keyboard buffer ? when i get char through scanf, i type in some characters and press enter, then, where do the characters go ? to STDIN or Keyboard...
4
7343
by: gl | last post by:
How can I make C# type to a screen? For instance make a common sentence or closing type into word by hitting a button (essentially a keyboard macro). Also timing has to be considered...for instance...
5
240
by: marfi95 | last post by:
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...
0
2718
by: neonspark | last post by:
I'm buidling some simple macro functionality for my app so the users can record a sequence of keyboard inputs and replay them reliably via some menu. Originally, I used: protected override bool...
1
1536
by: SandySailer | last post by:
It's been years since I've created a macro in MS Access (I am a ColdFusion programmer now), but I need to do some work in an Access database. I searched for an answer but couldn't find it, so that's...
1
1661
by: =?Utf-8?B?TXJOb2JvZHk=?= | last post by:
I want to do something similar to what some macro tools do, where they perform mouse/keyboard events on the user's machine , while intercepting the user's current keyboard/mouse events so that it...
0
7169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.