Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Shortcut Straight Definition <-> Declaration

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
Adequat Posted - Aug 14 2020 : 03:49:31 AM
I miss this shortcut:
if the cursor is on the method name (definition), then the shortcut should jump to the declaration. And reciprocally, without any menu.

IOW, like the Goto function, but without any intermediary step.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 15 2020 : 10:36:55 AM
Definitely a bug report, but it did look like a feature request at first

Are your classes inside namespaces? I am looking for any obvious clues to why VA is having a problem in your code, but not in my code. Can you please try adding this very simple test case to one of your .h files? The comments describe what I am seeing here in a simple .h file:

class testFelineAltG
{
public:
	// Test - Alt-G here goes directly to implementation
	void simpleMemberFunc();
	void callSimpleMemberFunc();
};

// Test - Alt-G here goes directly to declaration
void testFelineAltG::simpleMemberFunc() { }
void testFelineAltG::callSimpleMemberFunc()
{
	// Test - Alt-G here shows menu with 2 locations
	simpleMemberFunc();
}
Adequat Posted - Aug 14 2020 : 3:02:20 PM
I am using the latest version of everything...
When I press Alt-G on the function call, or the implementation name, or the declaration, I always get the menu that give me the choice to reach the implementation or the declaration.

This is for class methods, while for free functions, I get the same behavior as you describe. IOW, I would like the same behavior for free function and class methods.

Actually, this looks more like a bug report than a feature request...
feline Posted - Aug 14 2020 : 10:46:26 AM
Which IDE and version of VA are you using?

Which command / keyboard shortcut are you using?

using VS2019 and VA 2382.0, when I press Alt-G on a function call I am given the standard Alt-G menu for this function. But if I then jump to either the declaration or the implementation and press Alt-G I am taken directly to the implementation / declaration, and no menu is shown. Which seems to be what you are asking for, but this is normal behaviour for VA.

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