How to add short-key for “Add Definition in class.cpp” in Qt Creator
How to add short-key for “Add Definition in class.cpp” in Qt Creator
Add the short-key to Add Definition in class.cpp in Qt Creator:
By using the Alt+return and click the selected function to press the menu item and another solution is macro .
You can Alt+return click on the selected function and then press the menu item that appears, there might be another solution with a macro or something
When you define a member function in a class Interface in Qt creator you can right click on the function prototype and select Refactor->Add Definition in YouClass.cpp . But this will be really handy If you can set a shortcut for it. I couldn’t find it in options->shortcut section. enter image description here
For example in Visual Assist you can press ALT+SHIFT+Q.
You can Alt+return click on the selected function and then press the menu item that appears, there might be another solution with a macro or something
You can press Alt+Enter to open a context menu that contains refactoring actions available in the current cursor position.
std::shared_ptr<CameraGrabber> camera() const; void setCamera(const std::shared_ptr<CameraGrabber>& camera); private: std::shared_ptr<CameraGrabber> m_camera;
You can press Alt+Enter to open a context menu that contains refactoring actions available in the current cursor position.