Mac OSX上IntelliJ Idea中区分大小写的文件 [英] Case sensitive files in IntelliJ Idea on Mac OSX
问题描述
我的Java项目中具有相同名称但大小写不同的文件(Test.java和test.java).我已经在Mac上设置了区分大小写的文件系统,并能够通过CLI查看/编辑它们.但是,Intellij Idea不会将它们视为不同,并且编译会失败.如何修复Intellij Idea来满足文件名的大小写要求?
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?
谢谢
推荐答案
我在JetBrains提出了支持请求.答案是这样:
I filed a support request at JetBrains. Here is the answer:
在bin/idea.properties文件中添加"idea.case.sensitive.fs = true"( https://intellij-support.jetbrains.com/entries/23395793 ),执行文件|使缓存无效,然后重新启动IDE.
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.
更新:2015-02-14/想法14.0.3
update: 2015-02-14 / Idea 14.0.3
将属性添加到idea.properties文件中不再足够.将-Didea.case.sensitive.fs=true
添加到设置| ... | Java编译器|其他命令行参数".
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".
这篇关于Mac OSX上IntelliJ Idea中区分大小写的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!