Is there a way to ignore a file just for the Intellij error checking?
Answered
The project I'm working on has this weird CSS file which I guess is formatted incorrectly but works for whatever purpose it's there for (new developer on the team and still learning things). However, this is causing every single folder in the path to the file to show up with red squiggly's under it and it just looks aesthetically bad and prevents me from seeing if there is an actual error in one of the files in those folders. I don't want to completely ignore this file (still want it there for Git purposes and whatnot) but I wish Intellij wouldn't cause all the red squigglys. Is there any way to get rid of it?
Please sign in to leave a comment.
You can change the highlighting level per file here:
^Where does IntelliJ keep a list of such changes?
.idea/workspace.xml:
Just to clarify, because it took me some minutes to realize, you need to right-click on the error mark to bring that menu.
Hi everybody, everything allright?
Is there a way to set this
.idea/workspace.xml:
<component name="HighlightingSettingsPerFile">
in a RegEx OR PerDirectory OR PerProject way?
It is very annoying to have to set it one by one to have a PHP Syntax only inspection to all files of a project in a single click, for example.
You can disable inspections per scope. Create a new scope for PHP files (or a directory), create an empty inspections profile, use empty inspections profile for the scope for syntax only highlighting. See also https://youtrack.jetbrains.com/issue/IJPL-17392/Customize-highlighting-level-project-wide-feature-request.