Home

This documentation is out of date. Please refer to the latest version.

[Previous: A Quick Tour of Qt Creator] [Qt Creator Manual] [Next: Build Settings]

The Code Editor

Qt Creator's code editor is designed to aid the developer to create, edit, and navigate code. It is fully equipped with syntax highlighting, code completion, context sensitive help, as well as inline error indicators while you are typing. The screenshots below show the various dialogs within which you can configure your editor.

The table below lists keyboard shortcuts supported by the code editor.

Block navigationTo navigate between blocks, e.g., from one { to another } , use Ctrl+[ and Ctrl+].
Block selectionTo select a current block, use Ctrl+U. Pressing Ctrl+U again extends the selection to the parent block. To deselect, use Ctrl+Shift+U.
Moving lines up and downUse Ctrl+Shift+Up and Ctrl+Shift+Down
CompletionUse Ctrl+Space
Indenting BlocksUse Ctrl+I
CollapseUse Ctrl+<
Commenting or uncommenting blocksUse Ctrl+/
Delete a lineUse Shift+Del
Switch between header file and source fileUse F4.
Increasing and decreasing font sizeUse Ctrl+Scroll Wheel
Follow symbols under the cursorUse F2 and Shift+F2. This feature works with namespaces, classes, methods, variables, include statements, and macros.
Switch to an external editorSelect Open in external editor from the Edit -> Advanced menu.

[Previous: A Quick Tour of Qt Creator] [Qt Creator Manual] [Next: Build Settings]


Copyright © 2009 Nokia  
Qt Creator 1.1.0