The Qt Creator code editor is fully equipped with semantic highlighting, syntax checking, code completion, code indentation, context sensitive help, and in-line error indicators while you are typing.
You can use the editor toolbar to navigate between open files and symbols in use. You can also split the view to work on several files simultaneously, add bookmarks, and move between symbol definitions and declarations.
Qt Creator enables you to write well formatted code by highlighting code elements and blocks. You can use syntax highlighting also for other types of files than C++ or QML.
Qt Creator anticipates what you are going to write and completes code and code snippets for elements, properties, and IDs.
Qt Creator indents text and code according to rules that you specify separately for files that contain C++, QML, or Nim (experimental) code and for other text files.
When you edit QML code in the code editor, you specify the properties of QML components. For some properties, such as colors and font names, this is not a trivial task. For example, few people can visualize the color
. To easily edit these properties, you can use the Qt Quick Toolbars.
You can cooperate with others by pasting and fetching snippets of code from a server. For example, you might ask colleagues to review a change that you plan to submit to a version control system.
When you have a file open in the code editor, you can record a keyboard sequence as a macro. You can then play the macro to repeat the sequence. You can save the latest macro and assign a keyboard shortcut for running it or run it from the locator.
You can use a diff editor to compare two versions of a file and view the differences side-by-side in the Edit 模式。
The Clang code model provides some of the services previously provided by the built-in C/C++ code model, such as code completion, syntactic and semantic highlighting, diagnostics, tooltips, outline of symbols, and renaming of local symbols.