Question: My java project has files which have same name but different cases (Test.java & test.java). I have setup a case sensitive file system on my mac and am able to view/edit them via CLI. However, Intellij Idea does not regard them as different and compilation fails. How can I fix Intellij Idea to honor cases for a file name?

Thanks

Answer: 
I filed a support request at JetBrains. Here is the answer:

> 
> add "idea.case.sensitive.fs=true" to bin/idea.properties file (<https://intellij-support.jetbrains.com/entries/23395793> ), perform File | Invalidate Caches and restart the IDE.
> 
> 
> 

It solved the issue for me.

update: 2015-02-14 / Idea 14.0.3

It is no longer sufficient to add the property to the idea.properties file. Add `-Didea.case.sensitive.fs=true` to "Settings | ... | Java Compiler | Additional command line parameters".
It looks like the best option may be to add the idea.properties option to user profile configuration rather than global.

See the first comment here:

<https://confluence.jetbrains.com/display/IDEADEV/Filesystem+Case-Sensitivity+Mismatch>

Also this page mentions where the idea.properties file should go, if you don't have one already.

<https://www.jetbrains.com/help/idea/file-idea-properties.html>