Friday, June 17, 2011

Eclipse: Key Strokes display utility

Key Strokes is a simple Eclipse plug-in to display the typed Key Strokes in a small, always-on-top window. Useful for doing Eclipse screen casts no matter which platform you are on. Only works when working inside Eclipse.



You can install the plug-in from it's update site:

http://sandipchitaleseclipseplugins.googlecode.com/svn/trunk/KeyStrokesUpdateSite

Please file any issues at:

http://code.google.com/p/sandipchitaleseclipseplugins/issues/list

Enjoy!

5 comments:

Anonymous said...

Shift key is working, but alt and ctrl is not. Tested using Eclipse Indigo and Win 7/Vista on two computers.

Sandip Chitale said...

I will try it out and let you know.

Rahul Jiresal said...

So I've been trying to do a similar OSD for keystrokes of different Eclipse commands. I wrote somewhat similar code before I came across your plugin. The weird thing is, the keystrokes that are associated with commands are not displayed (e.g. CTRL + O), but the ones that are not, are displayed (e.g. CTRL + Y). Maybe Eclipse consumes the event before the plugin gets it. Any idea how to get around that?

Sandip Chitale said...

You may want to look at the source code of my plugin here:

http://sandipchitaleseclipseplugins.googlecode.com/svn/trunk/KeyStrokes/

It installs a filter ahead of the Eclipse keybinding service.

Sandip Chitale said...

More specifically look at:

http://sandipchitaleseclipseplugins.googlecode.com/svn/trunk/KeyStrokes/src/keystrokes/ToggleKeyStrokesView.java