Issue
Is is possible to change Eclipse IDE perspective when I launch an application?
There are similar, though not identical questions around: Eclipse automating perspective changing or Being in Debug View, and after program termination, switch back to Java View in Eclipse.
Use-case: having a single monitor here, I would like to have my console get much bigger while running an application (while still switching to Debug perspective if I am in debugging mode).
Solution
From Doc Changing the active perspective when launching
You can control which perspective becomes active when a program is launched and when it suspends. The setting is configurable for each launch configuration type, for each of the launch modes it supports.
To activate a particular perspective when a program is launched, do the following:
- Open the Run/Debug -> Perspectives preference page.
- Select the Always option for the Open the associated perspective when launching preference. This will cause the perspective associated with a program to become active whenever it is launched.
To activate a particular perspective when a program is suspends, do the following:
- Open the Run/Debug -> Perspectives preference page.
- Select the Always option for the Open the associated perspective when an application suspends preference. This will cause the perspective associated with a program to become active whenever a program suspends.
See the following image for open Run/Debug -> Perspectives preference
. This will be same for kepler also.
Answered By - Sumit Singh
Answer Checked By - Terry (JavaFixing Volunteer)