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

前端 未结 2 1577
栀梦
栀梦 2021-02-05 07:51

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

相关标签:
2条回答
  • 2021-02-05 08:31

    As proposed by @Robin Karlsson:

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

    As mentioned by @Dmitry Volosnykh, the above appears in the documentation (more concretely at Applying Refactoring Actions )

    0 讨论(0)
  • 2021-02-05 08:40

    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.

    0 讨论(0)
提交回复
热议问题