如何在git bash控制台(OS窗口)中使用键盘选择文本? [英] How to select text in git bash console (OS windows) use keyboard?

查看:570
本文介绍了如何在git bash控制台(OS窗口)中使用键盘选择文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何在git bash控制台中选择文本(例如:commit hash)使用鼠标,但是如何使用键盘来完成它。

解决方案

如果你的git bash控制台运行在cmd.exe中(并且在Windows中是典型的git安装),那么你可以使用cmd.exe窗口上下文菜单来选择和粘贴:

b
$ b


  1. 按下 alt + space - 它会显示窗口上下文菜单。
  2. e k - 它会选择编辑 标记菜单选项。

  3. 现在您可以将文本光标移动到 cmd.exe <

  4. 通过按住Shift键并用箭头键选择块来选择文本块。

  5. 按<$> c $ c>输入复制所选文本块。

您也可以将剪贴板中的文本粘贴到控制台使用 alt + space e p 快捷方式。

注意该键盘快捷键取决于Windows用户界面语言,如上所述,命令均为英文界面。


I know how to select text in git bash console (for example: commit hash) use mouse, but how to do it use keyboard.

解决方案

If your "git bash console" runs inside cmd.exe (and in typical git installation in Windows it is), then you can use cmd.exe window context menu for selecting and pasting:

  1. Press alt+space — it will bring window context menu.
  2. Press e, k — it will select Edit -> Mark menu option.
  3. Now you can move your text cursor around cmd.exe window with arrow keys.
  4. Select block of text by holding shift key and selecting block with arrow keys.
  5. Press enter to copy selected block of text.

You can also paste text from clipboard into console using alt+space, e, p shortcut.

Note that keyboard shortcuts depend on Windows user interface language, described above commands are for English interface.

这篇关于如何在git bash控制台(OS窗口)中使用键盘选择文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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