问题描述
用PyCharm打开较大文件的时候,出现错误提示“The file size (11.42 MB) exceeds the configured limit (2.56 MB). Code insight features are not available.”
解决方案
错误分析: 文件太大,IDEA对能关联的文件大小做了限制,主要是为了保护内存,默认值为2.5MB
解决方法: 把Pycharm文件限制调大一点就好了,具体步骤如下:
-
点击Help>>Edit Custom Properties.
-
在弹窗中选择Create,新建idea.properties文件。
-
在idea.properties文件中添加如下属性,将加载文件大小限制调大一点。
idea.max.intellisense.filesize=99999
-
重启pycharm即可。