idea 中如何快速输入 console.log

自定义模板

https://majing.io/posts/10000009872000

WebStorm提供了Live Template的功能,可以在JavaScript模块下新建console.log()的快捷方式。

File -> Settings -> Editor -> Live Templates

在JavaScript下新建模板,如设定缩写为.log,模板如下:

console.log($END$);

image-20210406094315028

效果

posted @ 2021-04-17 11:39  zcbj588  阅读(2614)  评论(0编辑  收藏  举报