- Qt Creator Documentation
- Enclose code in brackets or quotes
- Qt Creator 18.0.2

Edit properties of QML types ◦ Highlight code blocks

# Enclose code in brackets or quotes

Select code and enter one of the following opening characters to add the matching closing character at the end of the selection:

- (
- {
- [
- <
- "
- '

To specify whether to automatically insert matching characters, go to Preferences > Text Editor > Completion and select options in Automatically Insert Matching Characters.

Also, Qt Creator automatically inserts the closing character of a raw string literal prefix.

See also Completion, How To: Edit Code, and Edit Mode.