Default inspection settings (Syntax Errors) in editor

It seems that this comes up from time to time but JetBrains is sticking by a statement made by Dimitry Jemerov over 10 years ago. For me, the inspections produce a load of false warnings - it doesn't correctly interpret/parse Codeigniter classes and numerous other issues (like telling me a single line PHP if statement is missing braces). I don't want to turn it off completely but I want it to only show me syntax errors. I've attached 3 screenshots showing what I would like to do as a default for all files I am editing. Is this still not possible after all these years?

Snip 1 - what it defaults to.

Snip 2 - How this default setting looks (HTML: All Problems, PHP: All Problems).

Snip 3 - What I have to do every time I open a file - and what I would like to set as the global default for all files I edit.

 

Gary

 

0

Hi Gary,

You may create a separate inspections profile (or use a default existing one) and disable highlighting for specific languages (or do it granularly for some inspections) without actually disabling the inspections at all:

Thus inspections will not be highlighted in code and problems widget but still can be accessed via “Code > Inspect Code”. Please bear in mind that syntax errors from annotator will not be disabled by this change – looks like what you are looking for.

0

Thanks Vasiliy - that has solved my issue.

Gary

0

Great, thank you for the update!

0

请先登录再写评论。