打开终端输入下面的命令,vi
可替换为对应的文本编辑器编辑器
vi /Applications/{appFolder}/Contents/bin/idea.properties
也能够右键对应的的APP,点击显示包内容
或Show Package Contents
,而后在Contents/bin/
找到idea.properties
文件打开
在最后一行加入ide
idea.case.sensitive.fs=true
从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.properties
code
~/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便可看到效果。