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: 
To update your case sensitive settings you can simply run the folowing in your shell (Path would have to be changed for InteliJ as I use php storm but should work for the jet brains products)

```
echo idea.case.sensitive.fs=true >> /Applications/PhpStorm.app/Contents/bin/idea.properties

```
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>