More use of shortcut keys can significantly improve productivity, minimize the keyboard, the mouse to switch between the wasted time. I am here to list the Qt Creator shortcut keys that I think are important to master. See how many you know?
.
.
Move the cursor to the method declaration in the H file. Press Alt (press and hold) + Enter, and then press ENTER to add the function's declaration in the CPP.
.
Move the cursor to the variable you want to change, press CTRL + Shift + R, the current variable name outside the box is red, indicates that the global modification function has been activated, when the name of the variable here will be modified together with all the variable names used in the code.
.
Press ALT + number key (1-7) to quickly open the corresponding Output window.
.
In Qt Creator, there is a bookmark function, which is marked at a line of code, which is convenient to find later. Bookmarks can also add text callouts. In QT
Press CTRL + M to add/remove bookmarks,
Press CTRL +. Find and move to the next tab
.
This feature can be used only with Qt creator development. This shortcut key operation method is more special:
Press CTRL + E to release and press 2 to add the top and bottom layout columns
Press CTRL + E to release and press 3 to add the top and bottom layout columns
Press CTRL + E to release and press 1 to remove all columns
.
F2 quickly switch to the source of the cursor selected object.
F4 switches between the header file (. h) and the implementation file (. cpp).
Ctrl +/comments/uncomment the selection.
Ctrl + I automatically indents the selected code.
Ctrl + SHIFT + up moves the code of the current line up one line.
Ctrl + SHIFT + down moves the code of the current line down one line.
Qt Creator you have to master the quick action