webstorm 自定义注释内容
2017-12-12 本文已影响0人
junup
注释在我们很多项目中都要应用,今天打算为webstorm配置一个快捷注释的方法,让我们写注释更加方便,结果找了一个多小时,不得不说这地方的文档太少了,而且不精确,最后自己研究了一下还是配置好了。
- 点击
file->setting
,打开设置 - 搜索
live Temlates
选中要使用的语言模板,点击右侧的加号

- 输入自定义注释内容
/*
author: junup
time: $date$ $time$
function:
*/
- 点击
Edit variables
找到变量date
和time
根据下图的字符修改

- 点击
Expand with
进行快捷键添加