Just tired of typing console.log again and again, and do not find a way like 'Sysout + Control + Space' in Eclipse will create System.out.println().
相关问题
- Using WebStorm with Parse.com
- Make WebStorm to understand which vue components a
- Easiest way to create mobile apps on official Mete
- WebStorm/PhpStorm exclude file from search everywh
- How does one use “prompt” and “alert” javascript c
相关文章
- How can I convert a Bundle to a PersistableBundle?
- Pycharm error: Cannot determine module type (“WEB_
- Intellij: Move tab left and right
- Can't debug protractor in Webstorm (it just ha
- How to handle keyboard shortcuts using keyPressEve
- app.use(validator()); ^ TypeError: validator is no
- Creating new shortcut in notepad++
- Why am I getting “undefined is not an object (eval
I made my own template that seems to work. It may be useful for somebody.
Abbreviation: ll
Template text:
Variables: (just select the given field values by clicking drop down box)
There's a predefined Postfix template that allows you to type .log after a JavaScript expression or string and hit Tab to transform it to console.log().
You can also create a Live template (see Preferences | Editor | Live templates) that would expand into a code snippet once you type the selected abbreviation and hit Tab.
Update: there's now also a plugin that allows you to add console.log with a shortcut: https://plugins.jetbrains.com/plugin/10986-console-log
Yes it does,
<anything>.log
and press Tab key. This will result inconsole.log(<anything>);
ie,
<anything>.log
+ Tab =>console.log(<anything>);
eg1: variable
eg2: string
eg3: string and variable
I made a custom template. This can help you.
Abbreviation: clog
Template code: