Enclose code in brackets or quotes | Qt Creator Documentation

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

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 Editing code.

Edit properties of QML types ◦ Highlight code blocks