Qt Creator study notes - shortcut keys

0. Important shortcut key
F2: Quickly switch to the source code of the object selected by the cursor.
F4 : Switch between header files (.h) and implementation files (.cpp).
Ctrl + /                  : Comment/uncomment the selection.
Ctrl + i                   : Automatically indent selected code.
Ctrl + shift + up     : Move the current line of code up one line.
Ctrl + shift + down : Move the current line of code down one line.
1. Ctrl+Tab : Quickly switch open files
2. Alt+Enter : After declaring the function in .h, select the function, and quickly add the function definition in .cpp
3. Ctrl+Shift+R : Select this variable and modify the variable name , and modify all places:
4. Alt +1~7 : Quickly open the corresponding output window
5. Ctrl + M  add/delete bookmarks: mark a line of code, which is convenient to find
    Ctrl + .   Find and move to the next Label
6. This function is basically used as long as it is developed with Qt Creator:
First press Ctrl + e, then release and then press 2 to add columns of upper and lower layouts First press Ctrl + e, then release and press 3 to add columns of upper and lower layouts
First press Ctrl + e, release and press 1 to delete all column











Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326521250&siteId=291194637