用括号或引号括起代码

选择代码并输入以下开头字符之一,即可在所选内容的末尾添加匹配的结尾字符:

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

要指定是否自动插入匹配字符,请选择首选项>Text Editor >Completion

文本编辑器首选项中的 "完成 "选项卡

另请参阅 "完成"、"如何:编辑代码"和 "编辑模式"。

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.