Colocar o código entre colchetes ou aspas

Selecione o código e digite um dos seguintes caracteres de abertura para adicionar o caractere de fechamento correspondente no final da seleção:

  • (
  • {
  • [
  • <
  • "
  • '

Para especificar se os caracteres correspondentes devem ser inseridos automaticamente, acesse Preferences > Text Editor > Completion e selecione as opções em Automatically Insert Matching Characters.

Guia “Autocompletar” nas preferências do Editor de Texto

Além disso, o Qt Creator insere automaticamente o caractere de fechamento de um prefixo de literal de string bruta.

Veja também Autocompletar, Como: Editar código e Edição de código.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.