Search code examples
intellij-ideaphpstormwebstorm

how to define code shortcut in webstorm IDE?


Is it possible to define "shortcuts" to use with Webstorm something like below?
Example: pressing Shift + C + L would then insert at cursor position a "console.log()"


Solution

  • You can use existing Live Templates functionality (code snippets) to have cl[TAB] (for example) to be expanded into console.log(CURSOR_HERE);

    If you need actual dedicated keyboard shortcut ... then I may only suggest to record a macro that types such text and assign shortcut to it.