idea 中如何快速输入console.log
Sonder
2021-08-06
275字
1分钟
浏览 (5.7k)
WebStorm提供了Live Template的功能,可以在JavaScript模块下新建console.log()的快捷方式。
File -> Settings -> Editor -> Live Templates
在JavaScript下新建模板,如设定缩写为.log
,模板如下:
console.log($END$);
或者
console.log($VAR$,`=========>$VAR$`)


效果
