Включение кода в скобки или кавычки

Выделите код и введите один из следующих символов открытия, чтобы добавить соответствующий символ закрытия в конец выделенного фрагмента:

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

Чтобы указать, следует ли автоматически вставлять совпадающие символы, перейдите в « Preferences » > « Text Editor » > « Completion » и выберите параметры в разделе « Automatically Insert Matching Characters ».

Вкладка «Завершение» в настройках текстового редактора

Кроме того, Qt Creator автоматически вставляет завершающий символ префикса литерала необработанной строки.

См. также «Автодополнение», «Как: редактировать код» и «Редактирование кода».

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.