15

Possible Duplicate:
In Eclipse, how do I change perspectives after terminating a process?

Having Eclipse automatically switch to debug perspective while debugging is a great feature - is the opposite available? I'd like it to automatically return to Java perspective when terminating a debug session. A keyboard shortcut to return to Java perspective could be help as well.

Community
  • 1
  • 1
James Cadd
  • 12,136
  • 30
  • 85
  • 134

2 Answers2

19

By default, Ctrl-F8 is bound to switch between perspectives (but it can be rebound, if desired). Pressing it once will select the previous perspective.

JesperE
  • 63,317
  • 21
  • 138
  • 197
  • 1
    On the mac that would be `Apple-F8`. I would also suggest updating the text to say that this is the default binding, since it could be changed. – Paul Wagland Dec 31 '09 at 10:35
  • 1
    This is ridiculous; Visual Studio offers this feature. – Jason Mar 26 '13 at 19:41
  • 4
    How does this answers the question? Why is this an acceptable answer? The question is about *automaticaly* switching perspectives and not using a keyboard shortcut. This should be a comment only. – Odys Jan 22 '16 at 17:12
  • @Odys Did you read the entire question? It ends with "A keyboard shortcut to return to Java perspective could be help as well." – JesperE Jan 22 '16 at 18:27
  • in neon.2 at least, this does not switch perspectives. it just puts up a dialog – simpleuser Jan 22 '17 at 20:00
  • 1
    Well, it shows a list of possible perspectives to choose from, but you do not need to confirm anything, just select what perspective you want to switch to. And just pressing Ctrl-F8 will switch to the previous perspective. – JesperE Feb 01 '17 at 07:25
2

For the keyboard shortcut to return to Java perspective:

Window - Preferences - Keys

Then search for perspectives, you will find an entry like Show perspective (Parameter: Java), bind to that the shortcut you'd like.

Alberto Zaccagni
  • 30,779
  • 11
  • 72
  • 106