Dr. Stefan Winkler
freier Softwareentwickler und IT-Berater

NOTE! This site uses cookies to track your user session.

If you not change browser settings to prevent accepting cookies, you agree to it.

I understand

Sometimes it's the small things that make life a lot easier. 

In my daily work, I found myself often writing code in the Debug perspective. When I noticed, I asked myself: Why?! Then I analyzed myself and found out that the UI element for switching back to the Plug-In Development perspective (which is the perspective I work in 90% of the time) after debugging something was just too hard to reach. I'd have to move the mouse cursor the long way over to the upper right corner of the screen, look for the Plug-In Development perspective button between all those open perspectives, and click it.

Ok, there is ⌘+3 (or CTRL+3 for non-Mac users) which you can use as well. But then you have to type a few letters to search and sometimes you intuitively select the wrong result etc. So, nah! – that's not it either.

But then it occurred to me: why not create a custom shortcut? I was in doubt whether you can assign a shortcut to a specific perspective, so I looked in the preferences and voilà:

Key Shortcut Preferences 

So I quickly assigned ⇧+⌘+1 to the Plug-In Development perspective and ⇧+⌘+2 to the Debug perspective and now I can switch between both at light speed. I haven't thought about this earlier – I don't know why.

So the lesson learned today is: if you find yourself working inefficiently, step back for a second, analyze yourself and try to find a solution to fix it. Maybe the solution you need is only a preference setting away.

And I hope, the idea of assigning shortcuts to perspectives helps someone else out there ...

Comments   

0 # Donald 2013-06-29 17:20
There's already a shortcut to switch perspectives: CTRL-F8, which cycles through open perspectives via a popup dialog while the combo is pressed. Immediately releasing the combo switches back to the last used perspectives. Same is available for views and editors via CTL-F7 and CTRL-F6 respectively. Eclipse's kinda like vim: even after years there are still things you can discover :-)
Reply | Reply with quote | Quote
0 # Stefan Winkler 2013-06-29 20:57
Thanks, Donald. Problem is that I do not consider the F-Keys very accessible on Mac because they are mapped to volume etc. and I have to press Fn in addition to CTRL and F8 (or maybe there's another solution for that which I don't know yet ... ;-))
Reply | Reply with quote | Quote
0 # Wolfgang 2013-06-30 11:16
Quoting Stefan Winkler:
I have to press Fn in addition to CTRL and F8 (or maybe there's another solution for that which I don't know yet ... ;-))


That can be changed in the keyboard preferences! You can switch it to use Fn+Fx for media controls and get back proper use for the F-keys, which is invaluable for anything in Eclipse (debugging, perspective/vie w switching, …)
Reply | Reply with quote | Quote
0 # Eike Stepper 2013-06-29 18:56
Next you'll want something like this :P
Reply | Reply with quote | Quote
0 # Eike Stepper 2013-06-30 06:47
The link has been filtered out: http://www.gamesnhardware.com/img4B.jpg
Reply | Reply with quote | Quote
0 # Pascal Rapicault 2013-06-30 01:53
I found myself in a similar situation and instead of switching perspectives, I reorganized my debug perspective and always worked into it.
Reply | Reply with quote | Quote

Add comment


Security code
Refresh