如何将 IntelliJ(也是 Android Studio)重做快捷键配置为 CTRL+Y 而不是 CTRL+SHIFT+Z? [英] How to configure IntelliJ (also Android Studio) redo shortcut to CTRL+Y instead of CTRL+SHIFT+Z?

查看:35
本文介绍了如何将 IntelliJ(也是 Android Studio)重做快捷键配置为 CTRL+Y 而不是 CTRL+SHIFT+Z?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认的 IntelliJ/Android Studio重做"操作快捷键是 CTRL+Shift+Z,这是 Windows 用户的常见问题.

The default IntelliJ / Android Studio "Redo" action shortcut is CTRL+Shift+Z and this is a common problem for Windows users.

一个更大的问题是 CTRL+Y 被映射到删除行"操作 - 这会导致撤销堆栈丢失.

A bigger problem is CTRL+Y is mapped to the "Delete line" action - and this causes the undo stack to be lost.

要解决这个问题,如何在IntelliJ中将Redo"快捷键改为CTRL+Y?

To solve this issue, how can the "Redo" shortcut be changed to CTRL+Y in IntelliJ?

推荐答案

  1. 打开Settings(按CTRL+ALT+S)

点击左侧列表中的Keymap.

有一个包含键映射的组合框.选择其中一个(当然,默认意味着 IntelliJ.我们不能更改任何预定义的键盘映射,但是我们可以复制、编辑然后使用编辑的键盘映射.因此)我们应该复制默认"以仅更改重做映射.

There is a combobox that contains keymaps. Select one of them (default means IntelliJ of course. We can't change any of pre-defined keymap however we can copy, edit and then use the edited one. So) we should copy "default" to change only redo mapping.

为您复制的键盘映射指定一个新名称.

Give a new name to your copied keymap.

右键单击:主菜单 ->编辑 ->重做点击添加键盘快捷键"

Right click on: Main Menu -> Edit -> Redo to click "Add Keyboard Shortcut"

CTRL+Y

点击确定

点击删除"到快捷方式已分配给其他操作.您要删除其他分配吗?"

Click "Remove" to "the shortcut is already assigned to other actions. Do you want to remove other assignments?"

如果您还想使用任何删除行"快捷方式,请转到删除行快捷方式并为其提供任何其他快捷方式(如第 5 步)

If you want to use any "remove line" shortcut also, then go to delete line shortcut and give to it any other shortcut (like 5th step)

点击确定关闭设置窗口.

Click OK to close settings window.

这篇关于如何将 IntelliJ(也是 Android Studio)重做快捷键配置为 CTRL+Y 而不是 CTRL+SHIFT+Z?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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