如何在node.js中禁用WebStorm分号检查 [英] How to disable WebStorm semicolon check in node.js

查看:544
本文介绍了如何在node.js中禁用WebStorm分号检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在node.js中禁用WebStorm分号检查?



我已尝试过以下方法,但它们不起作用:




  • 查看选项使用分号终止语句

  • 将JavaScript版本更改为ecma6



任何想法?

解决方案

ol>

  • 设置(Mac上的首选项)|编辑|检查

  • JavaScript |代码风格问题|未终止的陈述 - 禁用此检查

  • 您还可以通过以下方式达到相同的检查:


    1. 在编辑器中的有问题的地方放置插入符号,并带来快速修复菜单( Alt + Enter 或点击灯泡图标)

    2. 在出现的菜单中选择正确的选项(如果不确定哪一个然后尝试步骤#3的几个)

    3. / kbd>(或单击右侧的小三角形)打开子菜单

    4. 选择所需的操作

    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?

    解决方案

    1. Settings (Preferences on Mac) | Editor | Inspections
    2. JavaScript | Code style issues | Unterminated statement -- disable this inspection

    You can also reach the same inspection by:

    1. Placing caret on problematic place in your Editor and bringing Quick Fix menu (Alt + Enter or by clicking on light bulb icon)
    2. Choosing right option in appeared menu (if not sure which one then try step #3 for few of them)
    3. Arrow Right (or click on small triangle on the right side) to open submenu
    4. Choose desired action

    P.S. JSLinh/JSHint and alike may also produce such warnings if you are using these tools.

    这篇关于如何在node.js中禁用WebStorm分号检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆