Saturday, December 10, 2011

TIP: Stable history navigation using Eclipse toolbar

Eclipse has a nice location history navigation toolbar. By repeatedly clicking on the history toolbar buttons you can quickly navigate to the locations the cursor/focus was at in various editors that are open. Unfortunately, out of the box, the position of the history navigation toolbar buttons is not stable if you have files of varying types open in the editor area. That is because the toolbar contributed by various editors are shown and hidden as the focused editor changes. These editor contributed toolbars (shown in blue rectangle below), when shown, are inserted to the left of history navigation toolbar. The following two screenshots demonstrates the behavior.

Fortunately there is a way to fix this behavior. It is possible to to drag the editor toolbar to the right-most side of the toolbar strip like shown in the following screenshot:

With this adjustment the history navigation toolbar remains in same place making it easier to use.

You may have to unlock the toolbars to see the drag handles as shown in the screenshot below:

I think this should be the default location of editor toolbars in Eclipse. Just filed this enhancement.

Such small adjustments makes the tool more productive.

1 comment:

james said...

Very Interesting Information! Thank You For This Blog!
program toolbar