T O P I C R E V I E W |
MrDoomMaster |
Posted - Feb 26 2014 : 4:13:10 PM 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!! |
3 L A T E S T R E P L I E S (Newest First) |
sean |
Posted - Feb 26 2014 : 4:46:17 PM 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...").
|
MrDoomMaster |
Posted - Feb 26 2014 : 4:40:29 PM 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 |
sean |
Posted - Feb 26 2014 : 4:20:39 PM 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)
|