当前位置: 首页>>技术问答>>正文


用于在GNOME终端上粘贴的键盘快捷键

, ,

问题描述

我们使用Ctrl + V粘贴剪贴板中的内容,但这不适用于终端窗口。

在GNOME终端上粘贴的键盘快捷键是什么?

最佳解决办法

您是否尝试过使用Ctrl + Shift + V

次佳解决办法

您必须使用Ctrl + Shift + V粘贴到终端。复制类似;使用Ctrl + Shift + C从终端复制。


Arild的评论解释(编辑了一下):

Following tradition, some Ctrl+(letter) shortcuts are mapped to entering control characters in the terminal (see How control characters map to keyboards on Wikipedia). That’s why we cannot use them for copy and paste. The shortcuts can be overridden in Edit > Keyboard Shortcuts, but especially Ctrl+C is useful to keep assigned to the control character ETX, which is used to interrupt the current command.

第三种解决办法

用于’copy’的Ctrl + Insert,用于’cut’的Shift + Delete和用于’paste’的Shift + Insert也适用于大多数地方,包括GNOME终端。

第四种办法

就像其他人所说的那样,复制是CTRL + SHIFT + C,而粘贴是CTRL + SHIFT + V而不是普通文本字段。

所以简而言之,只需添加转移到许多其他文本编辑快捷方式在终端中使用它。

这里有几个例子:

复制:CTRL + SHIFT + C

粘贴:CTRL + SHIFT + V

查找:CTRL + SHIFT + F

关闭终端窗口:CTRL + SHIFT + W

关闭所有终端窗口:CTRL + SHIFT + Q

等等。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/978.html,未经允许,请勿转载。