0

I have created a class inside my project but IntelliJ does not recognize it as such. I had my mate create the class for me but the problem seems to persist only on my machine. I will link a print below enter image description here

3
  • 1
    Does File>Invalidate Caches and Restart help? Commented May 7, 2021 at 23:01
  • will give that a try Commented May 7, 2021 at 23:12
  • It did not help. Commented May 7, 2021 at 23:13

1 Answer 1

1

Found this solution that worked for me:

Select required file type in top list (Recognized File Types) -- do it for "Text files" In bottom list (Registered Patterns) select undesired pattern -- "SomeFileName.java" Click on "-" (Minus) button to remove pattern from the list Repeat 1-2-3 for other undesired patterns

If desired, you can also do this manually by editing config file while IDE is closed. Because it's IDE-wide setting, it is not stored in .idea folder (which has project settinsg only) -- the file to look for is called filetypes.xml and shoudl be located in ~/Library/Preferences/IntelliJIdeaXX/options ( see http://devnet.jetbrains.net/docs/DOC-181 for other OS etc )

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.