jar包太大 intelj 打不开 无法阅读源码

来源:互联网 发布:时时彩四星缩水软件 编辑:程序博客网 时间:2024/05/13 06:39

公司接GDS的api ,生成的api 源码无法在intelj上点开(无法阅读源码),以前找到解决方法,结果重装2017之后忘了怎么处理的。google baidu 找了老半天没找到。
翻看安装目录时灵光一现,想起来了

记录一下,免得又忘了

由于 intelj 对引入的 jar 的源码的文件大小有限制。
在 安装intelj的目录下 打开 /bin/idea.properties 文件, 找到 idea.max.intellisense.filesize 这个 配置,把它改成比较大的数字就行了。

可以看下它的解释:
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.

大意是:
这个设置是给IDE 代码阅读帮助使用的, 设置太大会吃内存,让IDE 变慢。如果你有需要,可以删除这个属性或者将它设置足够大

原创粉丝点击