禁用PHPStorm对JavaScript分号的内置检查 [英] Disable PHPStorm's built-in inspection of JavaScript semicolons

查看:366
本文介绍了禁用PHPStorm对JavaScript分号的内置检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

适用于Mac的PHPStorm 8.0.3想要告诉我有关JavaScript中缺少分号的信息.我不希望PHPStorm这样做.

PHPStorm 8.0.3 for Mac wants to tell me about missing semicolons in my JavaScript. I don't want PHPStorm to do this.

此博客页面说. ..

内置检查可帮助您检测错误和潜在问题, 像缺少分号这样的显而易见的词...

Built-in inspections help you detect errors and potential problems, from obvious ones like a missing semicolon ...

稍后,博客指出内置检查的完整列表可在首选项|检查"中找到,但在14个检查类别的任何子类别中我都找不到分号.

Later, the blog indicates that "The full list of built-in inspections is available in Preferences | Inspections", but I can find no mention of semicolons in any of the subcategories of the 14 inspection categories.

PHPStorm是否对分号保持不变?

Is PHPStorm intransigent about semicolons?

推荐答案

无论何时要调整或禁用检查,只需将光标放在警告上,然后按 Alt + Enter .这将打开一个弹出窗口,其中包含一些建议,其中包含可供检查的菜单项.在您的情况下,检查称为Unterminated statement,可在JavaScript > Code style issues > Unterminated statement下找到.您可以从弹出子菜单中选择Disable inspection将其禁用,而无需打开设置对话框.您也可以选择Edit inspection profile setting在正确的位置打开设置对话框.

Whenever you want to adjust or disable an inspection, simply put your cursor on the warning and press Alt + Enter. This will open a popup with some suggestions, containing a menu item for available inspections. In your case, the inspection is called Unterminated statement and can be found under JavaScript > Code style issues > Unterminated statement. You can select Disable inspection from the popup submenu to disable it without ever opening the settings dialog. You can also select Edit inspection profile setting to open the settings dialog at the right place.

这篇关于禁用PHPStorm对JavaScript分号的内置检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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