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)

https://confluence.jetbrains.com/display/PhpStorm/Live+Templates+%28Snippets%29+in+PhpStorm

P.S.

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)

0

Please sign in to leave a comment.