终端
当你选择Run in Terminal 复选框并运行应用程序或Open Terminal 按钮打开终端时,它将作为输出视图打开。
要在单独窗口中打开终端,请转到首选项>Terminal ,然后清除Use internal terminal 。
在 Linux 和 macOS 上,你可以通过选择首选项>Environment >System 来设置终端的打开方式。
- 要清除终端,请选择
(Clear)。
- 要关闭当前终端,请选择
(Close)。
- 要以标签页形式打开新终端,请选择
(Create New)。
- 要在终端之间移动,请选择标签页或
(Previous Item) 和
(Next Item)。
- 要选择终端中的某个单词,请双击该单词。要选择整行,请点击三下。要选择所有文本,请在上下文菜单中选择Select All 或选择Ctrl+A。
- 要打开浏览器中的链接、编辑器中的文件或项目视图中的文件夹,请将鼠标悬停在它们上方,然后选择Ctrl。
- 要在输出中搜索,请按Ctrl+F。
- 要将字体变大或变小,请选择
和
。也可以在终端首选项中更改字体大小。
- 要打开终端首选项,请选择
(Configure)。
- 要防止Qt Creator 键盘快捷键干扰终端,请选择
。
除了用于打开终端首选项或定位器以及退出Qt Creator 的快捷键外,大多数Qt Creator 键盘快捷键在终端中都被禁用。要向终端发送转义键而不是关闭终端,请选择Shift+Esc 。也可以在终端首选项中指定将转义键发送到终端。
终端首选项
要为内部终端设置首选项,请选择首选项>Terminal ,或在Terminal 中选择Configure 。
选项 | 值 |
---|---|
Use internal terminal | 选择Run in Terminal 或Open Terminal 时,打开Terminal 窗格。 |
Send escape key to terminal | 向终端发送 escape 键,而不是关闭终端。 |
Block shortcuts in terminal | 防止Qt Creator 键盘快捷方式干扰终端。 |
Audible bell | 收到铃声字符时播放铃声。 |
Allow blinking cursor | 允许光标闪烁。 |
Enable mouse tracking | 在终端中启用鼠标跟踪。 |
Enable live reflow | 调整终端视图大小时,使文本回流。 |
Font | 为终端中的文本选择Font family 和Size 。您还可以使用Terminal 窗格中的![]() ![]() |
Colors | 为Terminal 窗格设置颜色Foreground,Background,Selection, 和Find match 。 要使用现有配色方案,请选择Load Theme 。 要还原颜色更改,请选择Reset Theme 。 |
Default shell | 在Shell path 中设置默认终端可执行文件的完整路径,在Shell arguments 中设置传递给 shell 的参数。 |
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.