这篇文章以IDEA缺省的idea.max.intellisense.filesize的修改方式为例,介绍一下MacOS下的IDEA的设定文件的修改方法。
现象
比如在IDEA的使用时出现了如下问题
这是因为IDEA为了性能,将idea.max.intellisense.filesize的缺省值设定为了2500( 此设定值单位为KB,2500/1024就是上述2.44MB)
设定方式
在Finder中通过Application找到此应用,通过Show Package Contents,找到设定文件,然后进行修改
可以看到缺省的idea.properties设定内容如下所示
idea.max.intellisense.filesize=2500
idea.cycle.buffer.size=1024
sun.java2d.d3d=false
idea.dynamic.classpath=false
idea.no.launcher=false
idea.xdebug.key=-Xdebug
sun.java2d.uiScale.enabled=true
swing.bufferPerWindow=true
idea.fatal.error.notification=disabled
javax.swing.rebaseCssSizeMap=true
idea.max.content.load.filesize=20000
idea.popup.weight=heavy
sun.java2d.pmoffscreen=false
CVS_PASSFILE=~/.cvspass
com.apple.mrj.application.live-resize=false
java.endorsed.dirs=
idea.smooth.progress=false
apple.laf.useScreenMenuBar=true
apple.awt.fileDialogForDirectories=true
apple.awt.graphics.UseQuartz=true
apple.awt.fullscreencapturealldisplays=false
idea.jre.check=true
将idea.max.intellisense.filesize=2500调整至期待值,然后重启IDEA,此问题就不再出现了