Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add short-key for "Add Definition in class.cpp" in Qt Creator

Tags:

qt

qt-creator

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.

like image 963
s4eed Avatar asked Jul 25 '13 09:07

s4eed


1 Answers

You can press Alt+Enter to open a context menu that contains refactoring actions, which are available at the current cursor position.

This is also mentioned in the documentation under Refactoring C++ Code

Maybe a solution with a macro or something in that direction exists as well.

like image 96
Robin Karlsson Avatar answered Sep 28 '22 17:09

Robin Karlsson