在使用 idea16版本时,若是系统jdk不是 JDK8或更高,启动时会弹出以下错误:java
Window 能够添加IDEA_JDK环境变量(64位启动程序)指定启动使用的JDK:less
IDEA_JDK_64 = D:\Program Files\Java\jdk1.8.0_72
根据不一样IDE能够选择的变量有:IDEA_JDK / PHPSTORM_JDK / WEBIDE_JDK / PYCHARM_JDK / RUBYMINE_JDK / CLION_JDK / DATAGRIP_JDKide
参考官方说明ui
IDEA打开的文件大小太大会提示报错:this
File size exceeds configured limit (2560000). Code insight features not available.
IDEA对能关联的文件大小作了限制,主要是为了保护内存,默认值为2500kb,对于通常的java文件也够用了,只是用到protocbuf生成的java文件过大,达到3M多。 其设置在...IDEA安装目录\bin 下的idea.properties文件。idea
#--------------------------------------------------------------------- # Maximum file size (kilobytes) IDE should provide code assistance for. # The larger file is the slower its editor works and higher overall system memory requirements are # if code assistance is enabled. Remove this property or set to very large number if you need # code assistance for any files available regardless their size. #--------------------------------------------------------------------- idea.max.intellisense.filesize=2500
解决方法:根据本身须要调整此数值,单位KBcode
其设置在...IDEA安装目录\bin 下的idea.exe.vmoptions | idea64.exe.vmoptions,根据机器内存调整:图片
-Xms128m -Xmx3072m -XX:MaxPermSize=512m