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文件打开
在最后一行加入ide

idea.case.sensitive.fs=true

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

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

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

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

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

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

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

idea.case.sensitive.fs=true

也能够打开终端执行it

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

相关文章
相关标签/搜索