在 Windows 上的 Ubuntu 上复制粘贴到 Bash 中 [英] Copy Paste in Bash on Ubuntu on Windows

查看:32
本文介绍了在 Windows 上的 Ubuntu 上复制粘贴到 Bash 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Windows 环境下执行从 Windows 10 到 Bash on Ubuntu 的复制粘贴操作?

How to execute a copy paste operation from Windows 10 to the Bash on Ubuntu on Windows environment?

我尝试了以下方法:

  • ctrl + shift + v
  • 右键粘贴

有什么建议吗?

推荐答案

2019/04/16 更新: Windows build >= 17643 现在似乎正式支持复制/粘贴.查看 Rich Turner 的回答.这可以通过下面描述的相同设置菜单启用,方法是单击使用 Ctrl+Shift+C/V 作为复制/粘贴"旁边的复选框.

Update 2019/04/16: It seems copy/paste is now officially supported in Windows build >= 17643. Take a look at Rich Turner's answer. This can be enabled through the same settings menu described below by clicking the checkbox next to "Use Ctrl+Shift+C/V as Copy/Paste".

另一种解决方案是启用快速编辑模式".然后在终端中右键粘贴即可.

Another solution would be to enable "QuickEdit Mode" and then you can paste by right-clicking in the terminal.

要启用快速编辑模式,请右键单击工具栏(或直接单击左上角的图标),选择属性,然后在选项选项卡中,单击快速编辑模式旁边的复选框.

To enable QuickEdit Mode, right-click on the toolbar (or simply click on the icon in the upper left corner), select Properties, and in the Options tab, click the checkbox next to QuickEdit Mode.

启用此模式后,您还可以通过单击和拖动来复制终端中的文本.选择完成后,您可以按 Enter 键或右键单击进行复制.

With this mode enabled, you can also copy text in the terminal by clicking and dragging. Once a selection is made, you can press Enter or right-click to copy.

这篇关于在 Windows 上的 Ubuntu 上复制粘贴到 Bash 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆