Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Alt-G problem with C and h files

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
AdyR Posted - Nov 29 2006 : 07:55:24 AM
I am using VS2005 + VA 1541 as the editor for a makefile project written in C. One problem I get is the Alt-G always goes to the header definition of variables instead of the C file.
E.g in the C file I have:
char* SeqNames [NUM_LIBRARY_TESTS + 1]=
{
	"8001:Custom",
	"8002:Cycle Test",
	"8003:Hold Test",
	"8004:Adhesive Test"
};
and in the header file I have:
extern char* SeqNames [NUM_LIBRARY_TESTS + 1];

In a function in another C file I have something like:
void foo()
{
	char* ptr = SeqNames[0];
}
When I put the cursor on SeqNames and hit Alt-G it goes straight to the h file instead of giving me a list of the C and H files. Pressing F12 for Visual Studios go to function takes me to the C file as required but I am so used to using Alt+G that this always catches me out.

3   L A T E S T    R E P L I E S    (Newest First)
AdyR Posted - Nov 30 2006 : 1:16:07 PM
Thanks feline. Pressing F12 is a simple workaround but the problem is I am so used to Alt-G, because it works better in most other cases, that I often forget and then end up in the header so I have to back up.
feline Posted - Nov 29 2006 : 7:20:06 PM
As a possible workaround Find References is picking up all of the references for me. If you do not have to many references then this may be a good approach to finding the implementation.
feline Posted - Nov 29 2006 : 6:51:25 PM
I am seeing the same effect here. Thank you for the clear description.

case=3862

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000