与 Eclipse 和 IDEA 的键盘快捷键同步?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1472861/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:02:19  来源:igfitidea点击:

Keyboard shortcut synchronization with Eclipse and IDEA?

eclipsekeyboard-shortcutsintellij-idea

提问by djcredo

My time spent programming is split between what I do at work, and the programming I do at home in my spare time. At work, we use Vista machines and IntelliJ IDEA 8, whilst at home I use Mac OS X and Eclipse.

我花在编程上的时间分为工作中的工作和业余时间在家中进行的编程。在工作中,我们使用 Vista 机器和 IntelliJ IDEA 8,而在家里我使用 Mac OS X 和 Eclipse。

As you can imagine, my ability to easily switch between the two is getting more difficult as I find the keyboard shortcuts are different.

正如您可以想象的那样,随着我发现键盘快捷键不同,我在两者之间轻松切换的能力变得越来越困难。

Is there a good way to quickly standardize the shortcuts for both Eclipse and IDEA? I see myself mostly using Eclipse in the future, so I would preferably like to switch in that direction.

有没有什么好的方法可以快速标准化Eclipse和IDEA的快捷键?我认为自己将来主要使用 Eclipse,所以我更愿意朝那个方向切换。

If not, I'll do it manually (ughh).

如果没有,我会手动完成(呃)。

回答by VonC

Odd, someone had the exact same wish back in 2005!

奇怪的是,早在 2005 年就有人有同样的愿望

Intellij is supposed to have an Eclipse Keymap

Intellij 应该有一个Eclipse Keymap

The IntelliJ FAQ for eclipse usermentions:

eclipse 用户IntelliJ 常见问题解答提到:

IntelliJ IDEA includes a bundled Eclipse keymap, so you can select it in Settings dialog, Keymap if you prefer using shortcuts you're accustomed to.

IntelliJ IDEA 包含捆绑的 Eclipse 键盘映射,因此您可以在“设置”对话框、“键盘映射”中选择它,如果您更喜欢使用习惯的快捷方式。

IntelliJ is supposed to have that Eclipse keymaps since the Demetra 6.0.5 version.
See their Release Notesfrom that (old) version.

自 Demetra 6.0.5 版本以来,IntelliJ 应该具有 Eclipse 键盘映射。
请参阅该(旧)版本的发行说明

回答by skulled

To get Eclipse Shortcuts, go to "Settings" and type "keymap". Then select Eclipse on the list.

要获得 Eclipse 快捷方式,请转到“设置”并键入“键盘映射”。然后在列表中选择 Eclipse。

回答by Steve K

This doesn't directly address your question, but IntelliJ's license allows you to run the application from home. See their faq.

这并不能直接解决您的问题,但 IntelliJ 的许可证允许您在家中运行该应用程序。查看他们的常见问题

That way you can use IntelliJ both at work, and at home.

这样你就可以在工作和家里使用 IntelliJ。

回答by Milan Pandey

Shortcut to use Eclipse shortcuts in IntelliJ Idea:
Press ctrl+`(also have tilde~ on it, button at the left side of digit 1). Then press 3 (Keymap) and select 2 (Eclipse). Done!

在 IntelliJ Idea 中使用 Eclipse 快捷方式的快捷方式:
按 ctrl+`(上面还有波浪号~,数字 1 左侧的按钮)。然后按 3 (Keymap) 并选择 2 (Eclipse)。完毕!