Friday, October 7, 2011

Eclipse Switching Tabs

Alternating File Tabs by pressing Ctrl + TAB

Even with many files open in the eclipse editor, only two files can be navigated alternatingly by Ctrl + TAB

To configure

    Windows -> Preferences -> General -> Keys

1. Unbind "Next Tab"
    Eclipse says that "Next Tab" is Switch to the next tab which I have no knowledge about

    Type in Next Tab to locate Next Tab and click on Unbind Command

Unbind Next Tab


2. Bind "Next Ed"
    Find it and bind a new command with "Ctrl + Tab"

Bind Next Editor


Two things will be noticed

1. While holding the Ctrl key, if the TAB key is pressed, then the previously worked file will be focused

    Let go off the Ctrl + TAB, and doing it again will focus on the previous file again

    So only two files will be alternatingly navigated without being bothered by others which are still open

    If a file tab is mouse-clicked, then it will become the current tab as if it was selected by Ctrl + Tab

2. If the Ctrl key is still being pressed, many TAB keys will navigate the files in the order they file names are buffered


* The alternating navigation between just the two files has nothing to do with "Previous Editor"

Bind Next Editor

No comments:

Post a Comment