Define shortcut keys for Snippets in CFEclipse
Something I have to continually remind myself about for some reason is how to define and use shortcut keys for snippets in CFEclipse. I’ve written about how to use snippets in cfeclipse before but failed to mention that an additional powerful feature is the ability to have them operate using keyboard shortcuts.
So, here it is in all it’s glory:
Firstly I’ve assumed you have set up a snippet in cfeclipse as described here.
Now, you will notice there is an attribute int eh snippet description called “trigger text”, this is the the text that is used to specify your shortcut, it is however not used as the short cut itself but rather in combination with the actual snippet shortcut which at time of writing was CTRL + J.
So, having saved a snippet with a trigger text for example of “rk” you can cause the snippet to appear by typing anywhere on the page:
rk+CTRL+J
And your text should magically be replaced by the new snippet.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Leave a comment