Erich is Professor at Lucerne University of Applied Sciences and Arts and Distinguished Member of Technical Staff at Freescale Semiconductor. Erich has a MsCS degree and 18+ years of experience in the embedded software and tools world. He created many embedded cross C/C++ compilers and debuggers. Additionally he is researching in the domain of programming languages, real time and mechatronic systems. Erich is a DZone MVB and is not an employee of DZone and has posted 90 posts at DZone. You can read more from them at their website. View Full User Profile

Quick Switch Editor in Eclipse

03.14.2013
| 5029 views |
  • submit to reddit

Probably I need to add 3rd monitor to my laptop system, or maybe I’m not organized enough. But as a matter of fact: I want to have as many source files as possible open in Eclipse. But there is simply not enough screen real estate to show them all:

Many source files open

Many source files open

With that many source files open, I need an effective way to switch between the files.

So far I used Ctrl+Tab to iterate through the files:

Ctrl+Tab Pop-Up

Ctrl+Tab Pop-Up

With this I can ‘tab’ through the open source files. But this not efficient for a large list of files.

A better way is to use Ctrl+E: This opens a similar pop-up window:

Ctrl+E Pop-Up

Ctrl+E Pop-Up

Here I can use a filter to find my file I want to switch to:

Filter with Ctr+E

Filter with Ctr+E

Best of all: I do not need a mouse or any click: I can keep my hands on the keyboard :-) .

In case Ctrl+E does not work for your Eclipse distribution: the shortcut is configured in the preferences:

Quick Switch Editor Shortcut Configuration

Quick Switch Editor Shortcut Configuration

Happy Switching :-)

 

Published at DZone with permission of Erich Styger, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Nestor Bohorquez replied on Fri, 2013/03/15 - 7:25am

 Hey, I can't believe I've spent so many years working with Eclipse without knowing that. Thanks.

Anton Arhipov replied on Sat, 2013/03/16 - 6:08pm

There are two more shortcuts with a similar functionality: Ctrl+Shift+E (Cmd+Shift+E on Mac), and Ctrl+F6 (Cmd+F6 on Mac). Ctrl+E is probably the most useful of them still.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.