QtCreator basic shortcut keys

Writing code


F1 View help
F2 / ctrl Jump to function definition
Shift + F2 Switch between declaration and definition
F4 Switch between header file and source file
Alt + 0 Show or hide the left sidebar, function in edit mode
Ctrl + Space auto fill Full (seems to conflict with input method switching)
ESc switches to edit mode
Alt (press and hold) + Enter h The method declaration in the file will add the definition of the function in cpp.
Ctrl + i automatically aligns
Ctrl + / comment lines, uncomment lines
Ctrl + shift + up moves the current line of code up one line.

Ctrl + shift + down Move the current line of code down one line.

Compile and debug


Ctrl + B Compile project
Ctrl + R Run project
F5 Start debugging
Shift + F5 Stop debugging
F9 Set and cancel breakpoints
F10 Step forward
F11 Step into function
Shift + F11 Step out of function

Other display functions


Ctrl (press and hold) + Tab to quickly switch the opened file to
uniformly modify the variable name Move the cursor to the variable to be changed, press Ctrl + Shift + R,
press Alt + numeric keys (1-7) to quickly open the corresponding output window.
Bookmark function Press Ctrl + M to add / remove bookmarks || Press Ctrl +. Find and move to the next tab
. Column function  
    first press Ctrl + e and then release, then press 2 to add a column in the top and bottom layout.
    Press Ctrl + e and then release Open and then press 3 to add the left and right layout columns
    first press Ctrl + e, then release and then press 1 to delete all the columns 

Published 31 original articles · Like1 · Visits1164

Guess you like

Origin blog.csdn.net/quietbxj/article/details/104689416