Is there a way to tell intelij to ignore a file inside a package

Viewed 29

I file inside a package and I want intelij to ignore it. every time I ran my code intelij keeps showing me errors and info from that java file. Is there any way for me to make intelij to ignore that file

2 Answers

Right click on the file > Override File Type > Plain Text

Note: This action DOES NOT override the file type of a specific extension. Instead, it override the file type of a specific file

You may switch-off all error highlighting at the top right corner for this file:

Disable highlighting in IDE

Related