51

On the new Windows 10 insider build 14316, I haven't been able to use Ctrl + V (shortcut for paste) on the new Bash on Ubunbu on Windows app. Has anybody else had this issue? Any solutions?

I have edited the app's properties to enable control shortcuts and insert. Also, I have tried Ctrl + Shift + V and Shift + Insert and neither work.

6 Answers6

45

Why don't you guys just Right Click? here is how to enable copy and paste:

  1. Go to the top of the bash window, right click, go to properties
  2. Check the box that says Quick edit Mode, and you are set!

    Copy and Paste Enabling on Bash for Windows 10

Good day!

-- Activate Quick Edit mode, then mouse left-click is select text, right DOUBLE-click is PASTE

Ozl
  • 624
11

The main issue, I believe, is that cmd.exe isn't dealing well with the bash environment. By itself the new cmd.exe actually does support Ctrl+v but whilst running bash, it doesn't.

My workaround is to use ConEmu. It's much superior to cmd.exe alone and even gives you color highlighting when running bash. I've tested it and Ctrl+v does work. As a nice plus, you get a tabbed terminal.

techraf
  • 4,952
Tiago Espinha
  • 210
  • 1
  • 7
6

Starting with at least Windows 10 Insider build 17643, you can use Ctrl+Shift+C/V as Copy/Paste if you enable it in the bash options:

enter image description here

This feature is part of the October 2018 Update (1809 - Build 17763).

5

As far as I know there's no 'good' solution out there (quickedit paste doesn't seem to work).What I would suggest is this: create an autohotkey script:

SetTitleMatchMode, 2
#IfWinActive, bash
^v::
SendInput {Raw}%clipboard%
return
3

As we figured out in the comments, the Paste entry in the window's system menu only activates after pressing Ctrl+V once, which is unusual. After that, though, you can use the sequence Alt+Space, E, P. (Courtesy of this Stack Overflow answer by Nescio.) That's not optimal, but it works.

If the Bash on Ubuntu on Windows window has a Properties entry in that menu, you might be able to check the "QuickEdit Mode" box on the Options tab to allow right-clicking in the window to count as a paste.

Ben N
  • 42,308
0

The problem is not specific to "BASH on Ubuntu". All Windows commandline windows experience this including cmd and powershell. Access the window menu under the icon in the top left (another answer mentioned alt+space, this opens the window menu). Choose defaults. Enable QuickEdit mode.

By default, in QuickEdit mode, highlighting copies and right click pastes. (Before Win 10, it still doesn't get you ctrl+c and ctrl+v).