Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Git Bash Shell using the default windows shortcuts for Copy & Paste?

Tags:

git

git-bash

I'd like to be able to use Ctrl-C & Ctrl-V for copy and paste into the Git Bash Shell. However, the shell has Ctrl-Insert & Shift-Insert as those actions.

I don't see an obvious way to change these shortcut keys. Am I missing something obvious?

I am using Windows 10.

like image 213
AngryHacker Avatar asked Mar 07 '18 00:03

AngryHacker


3 Answers

In Git Bash (2.25) there is an option to change the shortcuts from Ctrl|Shift+Insert to Ctrl-Shift+C|V.
It's still not what you are asking for, but it's much closer to it, than the default shortcuts.

Options=>Keys=>Shortcuts: activate option "Ctrl+Shift+letter shortcuts"

like image 166
fe60 Avatar answered Sep 19 '22 12:09

fe60


Properties -> Options -> Enable ctrl key shortcuts works for me. Otherwise, you can enable the QuickEdit mode from that same Options menu, and you should be able to use Windows commands in there.

like image 32
Ben Avatar answered Sep 20 '22 12:09

Ben


Ctrl-C sends an interrupt signal to the current program. It is useful if you, say, accidentally write a script with an infinite loop. This is why many terminals use alternatives.

I suggest learning the alternatives and leaving Ctrl-C for interrupt.

like image 39
ColonelFazackerley Avatar answered Sep 22 '22 12:09

ColonelFazackerley