Ruby. How can I copy and paste in irb on Windows?
Asked Answered
P

5

10

How can I copy and paste in irb (Interactive Ruby Shell) on Windows?

Pau answered 28/9, 2008 at 1:38 Comment(0)
J
26

To avoid having to open the drop-down menu and clicking, you need to change the command window settings. To do this, right-click the title bar, choose Properties, turn on "QuickEdit Mode" under the Properties tab (and keep "Insert Mode" on), then OK.

Now, to copy: drag to select, right-click to copy.

To paste: right-click with no selection.

Joshua answered 28/9, 2008 at 1:45 Comment(0)
J
5

To copy: Hit alt-space, choose Edit, choose Mark, drag-select the text, hit enter.

To paste: Hit alt-space, choose Edit, choose Paste.

Jennelljenner answered 28/9, 2008 at 1:41 Comment(0)
A
2

For CLI copy/paste:

Copy : Ctrl+insert
Paste : Shift+insert

Ahlgren answered 5/10, 2008 at 0:28 Comment(1)
Thanks. The 'Shift+Insert' works for pasting. Not sure about the 'Ctrl+Insert' for copying though.Clercq
U
1

You might want to consider using Console, a replacement for Windows' terrible command-line chrome. It offers fully redefinable keyboard shortcuts plus tabs, so it's ideal for IRB.

Unexampled answered 6/10, 2008 at 8:6 Comment(0)
H
0

check out console2--very nice and allows you to paste by using right click or what not.

Update: conemu is even better: http://conemu.github.io/

Harpp answered 16/9, 2009 at 22:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.