Eclipse HotKey: how to switch between tabs?
How can I switch between opened windows in Eclipse? There is Ctrl+F6, but it's asking me which one I want, but I want switch it like tabs in browser or window in operating system (Cmd/Win+Tab) without file-selection from the list. How to do this easy thing in Eclipse?
I've tried to assign hotkey for events:
but it doesn't work the way I want.
You can assign another shortcut to the 'Next Editor' key.
are the two official shortcuts, but they both involve a list being displayed.
CTRL+Page Up / CTRL+Page Down can cycle through editors without displaying a list.
What is interesting with that last set of shortcuts is:
they are not listed in the Eclipse Keys shortcuts to be defined.
They may be inherited from the multipage editor, making them an OS specific shortcut .
Regarding shortcuts on Mac OS (OSX), Matt Ball complained in Sept. 2011 to not being able to remap CTRL+Page Up/CTRL+Page Down:
It drives me nuts to not be able to flip through open tabs as I can in pretty much every other tabbed program in OS X (⌘-Left and ⌘-Right).
Well, in March 2012, Arthur replied:
, I've just downloaded the latest version of Eclipse (3.7+). I've been able to bind "Previous/Next tab" to (⌘-Left and ⌘-Right) when in Editor, which I'm pretty sure I couldn't do before.
So I guess they heard you.
It works just as you expect, tabs going from left to right and vice-versa, not on a history basis or some nonsense like that.
Matt Ball confirms:
oh wow, selecting "Editing Java Source" actually worked !
Now, unfortunately this means that I'm SOL if I nav into a non-Java file (JSP, XML, JS, etc.).
The fix for this is to "copy command" for this pair, and select all the "whens" that I want .
So far it's at least working beautifully for Java and JSP files.
This is a major PITA to set up, but it's just a one-time thing.
His exported preferences are available here for you to try.
Once imported, you should see, for all the relevant types of document:
If you go to Preferences (eg Window→Preferences) and view General→Keys
and then search for “Next Tab” and “Previous Tab”, you can remap them.
Switch like Windows in OS (go to window which last had focus)
CTRL-F6 in Eclipse, like ALT-TAB (on windows), brings up a list of tabs/windows available (if you keep the CTRL / ALT key depressed) and highlights the one you will jump to when you let go of this key. You do not have to select the window. If you want to traverse several tabs at once hold down the CTRL button and tap the TAB button. This is identical behaviour to ALT-TAB on Windows.
In this sense, CTRL-SHIFT-F6 in eclipse is the ALT-SHIFT-TAB analog. Personally, I change these bindings in Eclipse to be like Visual Studio. Ie CTRL-TAB and CTRL-SHIFT-TAB and I do it like this:
Window>Preferences>General>Keys
Then set "Next Editor"= Ctrl+Tab and "Previous Editor"= Ctrl+Shift+Tab . Don't forget to click "Unbind Command" before setting the new binding.
Switch like browser (go to tab on the right of current tab)
This is CTRL-PageDown to go right, CTRL-PageUp to go left. Frustratingly, when you get to the end of the list of tabs (say far right hand tab) and then try to go right again Eclipse does not cycle round to the first tab (far left) like most browsers would.
链接地址: http://www.djcxy.com/p/37566.html上一篇: 无法加载JNI共享库(JDK)
下一篇: Eclipse热键:如何切换标签?