Qt Creator you have to master the quick action

Source: Internet
Author: User

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?

.

    • 1. CTRL (Press and hold) + TAB to quickly toggle open files

.

    • 2. Quick Add method Entity (. cpp) Declaration,

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.

.

    • 3. Modify the variable name and apply it to all places where the variable is used.

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.

.

    • 4. Quickly open the Output window

Press ALT + number key (1-7) to quickly open the corresponding Output window.

.

    • 5. Bookmark function

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

.

    • 6. Column Display

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

.

    • 7. Other important shortcut keys

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.