简体   繁体   中英

PhpStorm only show Errors from Inspections

In PhpStorm how can I only show Errors, not Warnings globally for all files etc.?

I only can find the Inspection area in Preferences, but there I would have to uncheck all warnings, minor warnings for all Checkboxes and had to manage this for new file types in the future.

So, how can I Globally only show errors like it was possible in the past with Inspection Levels?

That can't be done in one click, but there's still a way. Open your inspections ( File | Settings | Editor | Inspections ), create a new inspections profile, eg "Errors only". Use filtering options to select all the inspection types but "Errors":

检查

Then click on a top inspection name/group and then shift + click on a bottom one to select all of them:

选定的检查

Then press Space 2 times to remove all checkboxes. Save the profile. Voilà. You now have a "Errors only" profile that you can use for this project when needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM