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
 Goto for __super:: function prefix
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

guyv666
Starting Member

Canada
1 Posts

Posted - May 26 2023 :  3:37:30 PM  Show Profile  Reply with Quote
In Visual Studio, when a function is prefixed with __super::, then the GOTO fails to take you to the correction function. Instead, it opens a context list of functions to choose from.

If I press F12 in Visual Studio, then it takes me to the correct function.

Having to use 2 different shortcuts is inconvenient.

Any chance this feature can be incorporated?

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 29 2023 :  07:16:12 AM  Show Profile  Reply with Quote
Can you please try the following simple code sample, and see if you get the same results as I do. I tested this using VS2022 and VA 2488.0 I have described what Alt-G is doing for me in the comments:

class BaseClassForSuper
{
public:
	virtual void SuperAltGTarget() { }
};
	
class ChildClassForSuper : public BaseClassForSuper
{
public:
	virtual void SuperAltGTarget() { }
	void testingSuperAltG();
};
	
void ChildClassForSuper::testingSuperAltG()
{
	SuperAltGTarget(); // Alt-G here goes directly to child class
	__super::SuperAltGTarget(); // Alt-G here goes directly to base class
}

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