[qtcreator] add implementation - for many or all items
-
After creating class declaration, how to tell Qtcreator to execute "(context menu on function decl) > Refactor > Add Definition to foo.cpp" on multiple elements at once?
E.g. user selects group of 5 lines/function decls. in editor, and then executes it for all of them (this, or other Refactor commands such as "Add definition outside of class").
Another useful shortcut would be to do it for all (not yet refactored/implemented" functions of class), rather than selecting entire class first.I would expected that to happen when in editor you right-click on the class name in class decl., then Qtcreator could show menu with options (in Refactor) such as: "Add definition (of 7 methods) to foo.cpp".
And similar when you select lines and then right-click.But currently this does not happen.
Is there a way to achieve this now?
If not, could it be implemented? It would be nice for fast prototyping of many simple classes.Is there any additional tool to quickly define classes with methods and generate such stub for the class?
-
Right click on Class name in header file -> Refactor -> Create implementation for member functions
-
@sierdzio said in [qtcreator] add implementation - for many or all items:
Right click on Class name in header file -> Refactor -> Create implementation for member functions
no such option appears - I guess I have too old Qtcreator here "Qt Creator 4.8.2
Based on Qt 5.11.3 (GCC 8.3.0, 64 bit)". -
Yes, upgrade to a newer one then.