Disable PHPStorm's built-in inspection of JavaScript semicolons

我的梦境 提交于 2019-12-22 08:46:35

问题


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

This blog page says...

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

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.

Is PHPStorm intransigent about semicolons?


回答1:


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.



来源:https://stackoverflow.com/questions/30383142/disable-phpstorms-built-in-inspection-of-javascript-semicolons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!