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
 keyboard shortcut for "Implement Virtual Methods"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrDoomMaster
Tomato Guru

251 Posts

Posted - Feb 26 2014 :  4:13:10 PM  Show Profile  Reply with Quote
Currently there doesn't seem to be a keyboard shortcut available for Refactor >> Implement Virtual Methods..., which is normally available when you right click the base class of a class declaration.

Please add a shortcut for this!!

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 26 2014 :  4:20:39 PM  Show Profile  Reply with Quote
alt+shift+q is the shortcut for the VA refactor menu.

alt+shift+q,t will run implement methods/interface.

Alternatively, you can bind a shortcut to the command:
Tools | Options | Environment | Keyboard
Look for "VAssistX.RefactorImplementInterface"
(implement interface and implement virtual methods are the same Visual Studio command)

Edited by - sean on Feb 26 2014 4:23:34 PM
Go to Top of Page

MrDoomMaster
Tomato Guru

251 Posts

Posted - Feb 26 2014 :  4:40:29 PM  Show Profile  Reply with Quote
Thanks sean.

I'm a bit confused between all of these similar refactoring options. What's the difference in these?
- Refactor >> Create Method Implementations
- Refactor >> Implement Virtual Methods
- Implement Interface
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 26 2014 :  4:46:17 PM  Show Profile  Reply with Quote
Create Method Implementations is offered when a class has declarations without implementations. It is Create Implementation in bulk (does not involve base classes).

Implement Virtual Methods is offered when a base class is not deemed to be an interface but has virtual methods. Implement Virtual Methods will display a dialog from which you may review base classes and methods.

Implement Interface is offered when a base class is deemed to be an interface. Implement Interface usually just runs without a dialog, but a dialog may be presented if there is more than one interface or if there many methods on the interface.

Implement Virtual Methods and Implement Interface can be invoked from the class definition or from a single one of its base classes (invoke on foo or bar in "class foo : public bar...").

Edited by - sean on Feb 26 2014 4:49:31 PM
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