在 Mac OS X 上的 Eclipse 中切换到下一个和上一个选项卡的快捷键是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4150072/
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
What are the shortcut keys to change to the next and previous tab in Eclipse on Mac OS X?
提问by Daryl Spitzer
I want to be able to switch from one file to another in the Eclipse editor (in the Java perspective) from the keyboard (and bind those key combinations to buttons on my mouse). What are the shortcut keys for switching the current tab to the next or previous?
我希望能够在 Eclipse 编辑器中(在 Java 透视图中)通过键盘从一个文件切换到另一个文件(并将这些组合键绑定到鼠标上的按钮)。当前选项卡切换到下一个或上一个选项卡的快捷键是什么?
采纳答案by VonC
According to this thread, switching editors are:
根据这个线程,切换编辑器是:
- Shift+Command+F6
- Command+F6
- Shift+ Command+F6
- Command+F6
, which you can remap to:
,您可以重新映射到:
- Shift+Command+Tab
- Command+Tab
- Shift+ Command+Tab
- Command+Tab
Note, as mentioned in that same thread:
请注意,如同一线程中所述:
- Command+Elists all the opened editors, allowing to quickly select one
- Shift+Command+Llists all the active key bindings.
- Command+E列出所有打开的编辑器,允许快速选择一个
- Shift+ Command+L列出了所有的活动密钥绑定。
The bug 86248helped introduced the Cntrl+↑and Cntrl+↓, which Bjorn Tiplingreports workingon Mac with a Fnin front of it.
该缺陷86248帮着介绍了Cntrl+↑和Cntrl+ ↓,这比约恩Tipling报告工作在Mac上与Fn在它前面。
回答by Bjorn
Mac OS X:
Mac OS X:
Fn+Cntrl+↑
Fn+ Cntrl+↑
Fn+Cntrl+↓
Fn+ Cntrl+↓
Effectively Cntrl+page up/page downas given in the first comment for @wibbe01's answer.
有效地Cntrl+ page up/page down正如@wibbe01 的答案的第一条评论中给出的那样。
回答by wilbbe01
If I were you I would just go to the eclipse menu, then preferences. Under the general section of the tree there is a section called "Keys" In there you will find things for "Next Editor" or whatever other keyboard shortcuts you are looking for. Map them to what makes sense to you....then you're happy like this :) or maybe even like this :D.
如果我是你,我会去 eclipse 菜单,然后是偏好。在树的常规部分下,有一个名为“键”的部分,您可以在其中找到“下一个编辑器”或您正在寻找的任何其他键盘快捷键的内容。将它们映射到对你有意义的地方......然后你会像这样快乐 :) 或者甚至像这样 :D。
Enjoy.
享受。
回答by Orlando
In Eclipse's preference panel, go to Keys. The command is called Next Tab
and Previous Tab
, just map these to whatever you want. In my case since I normally use mvim are:
在 Eclipse 的首选项面板中,转到 Keys。该命令称为Next Tab
and Previous Tab
,只需将它们映射到您想要的任何内容即可。就我而言,因为我通常使用 mvim 是:
?+?+[
?+ ?+[
?+?+]
?+ ?+]
回答by Serdar Büyükkanl?
You can change all shortcut keys in preferences by pressing ctrl+shift+L 2 times . Switching tab in Eclipse (ctrl+F6) is not easy to press. So you can make it ctrl+tab or whatever you want.
您可以通过按 ctrl+shift+L 2 次来更改首选项中的所有快捷键。Eclipse 中的切换标签(ctrl+F6)不容易按。所以你可以让它 ctrl+tab 或任何你想要的。
回答by Gene Bo
Since I have my F keys mapped to the default setting, I had to use fn-command-F8
由于我将 F 键映射到默认设置,因此我不得不使用 fn-command-F8
I figured it out by first confirming command-F8 was indeed mapped under command-shift-L
我通过首先确认 command-F8 确实在 command-shift-L 下映射了它