如何在node.js中禁用WebStorm分号检查 [英] How to disable WebStorm semicolon check in node.js
本文介绍了如何在node.js中禁用WebStorm分号检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在node.js中禁用WebStorm分号检查?
我已尝试过以下方法,但它们不起作用:
- 查看选项
使用分号终止语句
- 将JavaScript版本更改为ecma6
任何想法?
解决方案
ol>
设置(Mac上的首选项)|编辑|检查
JavaScript |代码风格问题|未终止的陈述
- 禁用此检查您还可以通过以下方式达到相同的检查:
- 在编辑器中的有问题的地方放置插入符号,并带来快速修复菜单( Alt + Enter 或点击灯泡图标)
- 在出现的菜单中选择正确的选项(如果不确定哪一个然后尝试步骤#3的几个)
- / kbd>(或单击右侧的小三角形)打开子菜单
- 选择所需的操作
PS
如果您使用这些工具,JSLinh / JSHint等也可能会产生这样的警告。
How to disable WebStorm semicolon check in node.js?
I have tried the following method but they do NOT work:
- check out the option
use semicolon to terminate statement
- change JavaScript version to ecma6
Any ideas?
解决方案
Settings (Preferences on Mac) | Editor | Inspections
JavaScript | Code style issues | Unterminated statement
-- disable this inspection
You can also reach the same inspection by:
- Placing caret on problematic place in your Editor and bringing Quick Fix menu (Alt + Enter or by clicking on light bulb icon)
- Choosing right option in appeared menu (if not sure which one then try step #3 for few of them)
- Arrow Right (or click on small triangle on the right side) to open submenu
- Choose desired action
P.S. JSLinh/JSHint and alike may also produce such warnings if you are using these tools.
这篇关于如何在node.js中禁用WebStorm分号检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文