报错:如图

Eslint注释在webstorm中报错,自定义注释模板?

1./* */前后需要space或者 tab

2.webstorm设置注释前后空格

2.1通过完全自定义模板,解决注释的问题。

settings→直接搜索live template


Eslint注释在webstorm中报错,自定义注释模板?

1.点击加号,添加模板

2.设置缩写

3.设置描述

4.模板内容

5.缩写后,使用tab触发模板

6.应用模板


其他选项

编辑变量

1.在模板中输入变量,格式如:$time$

2.editVariable



相关文章:

  • 2021-06-04
  • 2022-12-23
  • 2021-11-30
  • 2021-08-31
  • 2021-12-17
猜你喜欢
  • 2021-05-15
  • 2021-11-22
  • 2022-01-05
  • 2021-09-17
  • 2022-12-23
  • 2021-08-28
  • 2021-11-22
相关资源
相似解决方案