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

效果

相关文章

这篇文章主要介绍了idea中mapper快速跳转到xml插件的方法,具...
今天小编给大家分享的是IDEA搭建Maven模块化项目的实现方法,...
这篇文章主要介绍了ideaintellij怎么快速修复if语句缺少大括...
这篇文章主要介绍“idea运行main方法或Test避免编译整个应用...
这篇文章主要介绍“idea项目全局去掉严格的语法校验方式是什...
本文小编为大家详细介绍“Windows、IDEA、VSCode常用快捷键有...