JetBrain系列IDE提示Filesystem Case-Sensitivity Mismatch的解决



解决方法1


1. 用文本编辑器修改APP包文件中的属性文件(不推荐)

打开终端输入下面的命令,vi可替换为对应的文本编辑器

vi /Applications/{appFolder}/Contents/bin/idea.properties

也可以右键对应的的APP,点击显示包内容Show Package Contents,然后在Contents/bin/找到idea.properties文件打开
在最后一行加入

idea.case.sensitive.fs=true

2. 复制或新建属性文件到APP的启动目录,添加对应的属性项(推荐)

IDE_HOME/bin/ 复制 idea.properties 文件到 ~/Library/Preferences/<appFolder>/目录 ,或者直接新建名称为idea.properties 的文件

  • IDE_HOME/bin/ 为对应的APP的包文件的路径:

    对PhpStorm2018.2版本来说,目录是:/Applications/PhpStorm/Contents/bin/idea.properties
    对PyCharm2018.2版本来说,目录是: /Applications/PyCharm/Contents/bin/idea.properties

  • ~/Library/Preferences/<appFolder>/为对应IDE的启动目录,如果是自定义的启动目录,则按照自定义的启动目录选择即可,默认的启动目录:

    对PhpStorm2018.2版本来说,目录是: ~/Library/Preferences/PhpStorm2018.2/
    对PyCharm2018.2版本来说,目录是: ~/Library/Preferences/PyCharm2018.2/

如果是复制,建议清空该文件的内容,在该文件中添加

idea.case.sensitive.fs=true

也可以打开终端执行

vi ~/Library/Preferences/<appFolder>/idea.properties 
或
cp IDE_HOME/bin/idea.properties ~/Library/Preferences/<appFolder>/idea.properties
然后
echo 'idea.case.sensitive.fs=true' > ~/Library/Preferences/<appFolder>/idea.properties
# PhpStorm2018.2对应的命令为
vi ~/Library/Preferences/PhpStorm2018.2/idea.properties

cp /Applications/PhpStorm/Contents/bin/idea.properties ~/Library/Preferences/PhpStorm2018.2/idea.properties

echo 'idea.case.sensitive.fs=true' > ~/Library/Preferences/PhpStorm2018.2/idea.properties

然后重启IDE即可看到效果。


  1. http://confluence-prod.aws.intellij.net/display/IDEADEV/Filesystem+Case-Sensitivity+Mismatch

转载于:https://www.cnblogs.com/idlo/p/9770181.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值