更改IntelliJ在Mac上具有Eclipse键映射(即cmd + alt + R重构/重命名) [英] Changing IntelliJ to have Eclipse key map on Mac (i.e. cmd + alt + R to refactor/rename)
问题描述
做了一些搜索后,我发现首选项中的键盘映射选项,但是Eclipse键映射选项实际上是Windows键盘映射。例如,Refactor / Rename是Alt + Shift + R。
我知道我可以手动更改我需要的所有快捷方式,但是是否有任何一种工具/方法将所有键盘映射到Eclipse Mac风格为我?
谢谢!
1 - 获取此xml文件(Mac上的Eclipse):
https://github.com/thatha/IntelliJ-IDEA-Eclipse-on-Mac-Keymap/blob/ master / Eclipse%20on%20Mac.xml
2 - 将文件保存到此目录中:
<注意 - 此目录可能因您的IntelliJ的系统/版本而异。根据这个链接:
http://www.jetbrains.com/idea/webhelp/configuring-keyboard-shortcuts.html
应该是这样的形式: 〜/ Library / Preferences / .IntelliJ IDEA / keymaps /
挖掘,你会发现!
3 - 打开IntelliJ,导航到首选项(cmd +,)。在IDE Settings> Keymap下,从Keymaps下拉列表中选择Eclipse on Mac。
I want to be able to use the standard Eclipse Mac keymap, i.e. Refactor/Rename is cmd + alt + R
Having done a bit of searching, I found the Keymap option in Preferences, however the "Eclipse" key map option is actually the Windows keymap. For example, Refactor/Rename is Alt + Shift + R.
I know I can manually change all the shortcuts I need, but is there any sort of tool/method which will change all the keymaps to Eclipse Mac style for me?
Thanks!
1 - Grab this xml file (Eclipse on Mac):
https://github.com/thatha/IntelliJ-IDEA-Eclipse-on-Mac-Keymap/blob/master/Eclipse%20on%20Mac.xml
2 - Save the file to this directory:
~/Library/Preferences/IntelliJIdea11/keymaps/
note - this directory may vary depending on your system/version of IntelliJ. According to this link:
http://www.jetbrains.com/idea/webhelp/configuring-keyboard-shortcuts.html
It should be of the form: ~/Library/Preferences/.IntelliJ IDEA/keymaps/
Dig around and you will find it!
3 - Open IntelliJ, navigate to Preferences ( cmd + , ). Under IDE Settings > Keymap, select "Eclipse on Mac" from the Keymaps drop down list.
这篇关于更改IntelliJ在Mac上具有Eclipse键映射(即cmd + alt + R重构/重命名)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!