Question

Is there a way to show/hide various panels in Eclipse?

For example, shift-alt-p opens the Package Explorer panel in my setup, but then to close the panel I have to mouse over and close it manually.

Ideally one could toggle show/hide panels in Eclipse with keyboard shortcuts set via prefs > general > keys

Tough on the wrist to go keyboard-mouse-keyboard-mouse all day.

Perhaps I'm missing some magic combo, please enlighten if you have the Nirvana to spare.

Was it helpful?

Solution

Press Ctrl+F7 you will get below pop up.

enter image description here

Traverse or cycle through the views you want to close by pressing F7 key. After selecting the view to be closed in the above pop up release Ctrl key. Then the view to be closed will be activated.

Go to Window->Preferences type keys in the search box. Check whether any short cut key is assigned to close part. Refer below picture,

enter image description here

In my case it is assigned to Ctrl+W. Once the view is activated press this short cut key to close the view. If any short cut key is not assigned to close part then you can assign new short-cut key for this.

Click on Binding text box(Refer second picture) and assign your own short cut key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top