2.4. Tiling Editors

Problem

Although you can switch editors by clicking their tabs in the editor area, sometimes it’s more desirable to have two editors open at once, e.g., when you’re comparing two files visually.

Solution

You can drag editors and can tile the editor area with them.

Discussion

When you drag an editor and position it near an edge of the editor area, you’ll see an arrow, as shown in Figure 2-5, which indicates that dropping the editor will dock it on that edge.

Dragging an editor

Figure 2-5. Dragging an editor

The new, tiled editor presentation is shown in Figure 2-6.

Tiling editors

Figure 2-6. Tiling editors

To restore an editor to its original position, just drag it back to where it was.

Tip

You can open an item in an editor by dragging the item from a view such as the Package Explorer and dropping it on the editor area.

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.