Hotkey to Code Snippet

Is there a way to tie a hotkey to a code snippet in Webstorm?  Example: pressing "Shift + C + L" spits out console.log(); into the editor.

1 comment

Hi there,

Just use Live Templates for such stuff -- more flexible in general (entry points, easier to type IMO, they listed in code completion popup in case if you forgot abbreviation etc)


If you really want to use custom shortcut -- the best I can suggest is to use Macro functionality (but Live Template is more reliable IMO)


Please sign in to leave a comment.