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
 Additional Ctrl-Click functionality
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

texsc98
Starting Member

USA
1 Posts

Posted - Aug 26 2010 :  3:58:44 PM  Show Profile  Reply with Quote
It would be nice to have the option when Ctrl-clicking a method call that exists in an interface, that you could choose to jump to a method from a list that implements that interface method...

I think that would work better than having to jump to the interface method, then having to do a "Find references" to get to the implementation of the interface method that you originally wanted

Our greatest glory is not in never falling, but in rising every time we fall.
-Confucius

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 26 2010 :  5:51:34 PM  Show Profile  Reply with Quote
We are considering doing this at some point:

case=36934
Go to Top of Page

Alexis Pautrot
Junior Member

21 Posts

Posted - Sep 17 2010 :  08:47:41 AM  Show Profile  Reply with Quote
Ctrl+Click is also already used allow word selection, I can not live without it :)

You can consider assigning a short cut to "Find references". I'm personally using F1 for that (VS help is no more useful to me since Google exists).
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 17 2010 :  2:38:36 PM  Show Profile  Reply with Quote
You can already use ctrl+click to go to the symbol if you enable here:
A Options -> Advanced -> General -> Execute Goto upon Ctrl+Left-Click in text editor

case=36934 is about improving goto on interface functions.

Regarding find references: we have default shortcut (shift+alt+f) but as you can see you can override it any time.
Go to Top of Page

Admin
Whole Tomato Software

USA
74 Posts

Posted - Nov 12 2010 :  3:16:47 PM  Show Profile  Reply with Quote
case=36934 is implemented in build 1836
Go to Top of Page

pwc
Tomato Guru

138 Posts

Posted - Nov 19 2010 :  11:51:02 AM  Show Profile  Reply with Quote
I can't seem to make this work in 1836. I have an abstract base class with all pure virtual functions (all native c++). When I alt-g on a method of the interface at a call site, it always takes me to the method declaration in the interface; it never offers any implementations. Are there some restrictions/requirements that I'm not aware of?

Thanks,

Paul
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 19 2010 :  12:32:21 PM  Show Profile  Reply with Quote
The new behavior is context dependent. It only kicks in when invoked via the base interface:

interface IFoo
{
    void FooMethod();
};

// alternatively
class IFoo
{
    virtual void FooMethod() = 0;
};

class FooImplementer : public IFoo
{
    void FooMethod();
}

void FooImplementer::FooMethod()
{
}

void test()
{
    IFoo * p1;
    // alt+g on FooMethod will list 3 destinations 
    // (IFoo::FooMethod, FooImplementer::FooMethod decl, FooImplementer::FooMethod impl
    p1->FooMethod();  


    FooImplementer * p2;
    // no change in behavior 
    // (alt+g will not list IFoo::FooMethod)
    p2->FooMethod();
}


If you're seeing something different, could you please post a similar example?
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