Question

Yesterday, I downloaded Eclipse Juno and it's pretty nice. Somehow I'm not able to maximize a split screen that shows two Java files. Just one of the two Java files are maximized at the same time.

Sure, I could manually close the Package Explorer, Outline View and so on, but this is pretty tedious. How do I maximize both files in the split view? It used to be Ctrl + m. Thank you.

Edit:

Apparently, there two different ways to split the screen. I still haven't figured out the difference while I'm splitting the screen.

maximizes both files

maximizes just one

Était-ce utile?

La solution

The way the editor area will be split depends on how far you drag the the upper tab, notice the position of the hand cursor in the screenshots below:

If you drag it halfway, it will be split so you can maximize both at once.

enter image description here

If you drag it a little more to the right edge, the editor area will be split so you can only maximize one at a time.

enter image description here

Autres conseils

This new behavior inspired the following Eclipse bug report:

New split screen dragging UI/maximize pane options is as clear as mud

So I appreciate the likely well intentioned UI developments, but apparently many of us are puzzled by the change in how editors are now split and maximized:

Eclipse Juno maximize splitscreen

It seems the user experience was not really well thought through with respect to these changes.

Might I suggest that this interface be rethought? I'd start by dumping the drag-to-define whether or not panes should be maximized individually or with their neighbors interface. First, the instance of a user splitting an editor in two is the wrong time to be "asking" the user whether or not to maintain both views if he or she decides to maximize the editor someday. To top it off, the visual indication of the user's decision about this is confusing at best.

Instead, I propose that you dump the varying green line interface and instead shift the decision to the time when it actually matters--that is, when the user decides to maximize the editor. Maybe the following would work better:

There should be a small "editor maximize" button in the upper right corner of the "complete" editor pane. This would always maximize all panes in the editor. There should always be a maximize/minimize pair on each editor split as well that would maximize/minimize that particular split.

I don't use Juno yet, but in the previous versions you can change this behavior from Window -> Preferences -> General -> Appearance and play with "current presentation" until you find the behavior you like

If you split your editor with the shortcuts from the HandySplit plugin you should be fine maximizing both sections simultaneously.

It will be easier with Eclipse Luna 4.4 M4+, as Lars Vogel announced (December 2013) in "Split editor implemented in Eclipse M4 Luna":

Split editor implemented in Eclipse M4 Luna 4.4

This solves one of the oldest and most upvoted Eclipse bug: Bug 8009.

https://bugs.eclipse.org/bugs/attachment.cgi?id=214959

That means you have to maximize only one Windows, even when that Windows is a code editor view, with a split in it.

The split editor functionality has been developed in Bug 378298, and will be available as of Eclipse Luna M4. The Note & Newsworthy of Eclipse Luna M4 will contain the announcement.
Current shortcut for splitting is:

  • Ctrl + _ for split horizontally, and
  • Ctrl + { for split vertically.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top