Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Shortcut Straight Definition <-> Declaration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Adequat
Tomato Guru

182 Posts

Posted - Aug 14 2020 :  03:49:31 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 14 2020 :  10:46:26 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Adequat
Tomato Guru

182 Posts

Posted - Aug 14 2020 :  3:02:20 PM  Show Profile  Reply with Quote
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...

Edited by - Adequat on Aug 14 2020 3:04:25 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 15 2020 :  10:36:55 AM  Show Profile  Reply with Quote
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();
}

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000