如何将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?

查看:167
本文介绍了如何将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中将重做"快捷方式更改为 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.当然,我们不能更改任何预定义的键盘映射,但是我们可以复制,编辑然后使用编辑后的键盘映射.因此)我们应该复制"default"以仅更改重做映射. img src ="https://i.stack.imgur.com/jw44H.png" alt =复制默认键图">

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.

右键单击: Main Menu -> Edit -> Redo单击添加键盘快捷键"

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天全站免登陆