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

前端 未结 2 1606
栀梦
栀梦 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: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.

提交回复
热议问题