Increase file size limit in Pycharm 2018.3 in MacOS

Increase file size limit in Pycharm 2018.3 in MacOS

By default Pycharm has maximum file size limit set to few megabytes. When trying to open file bigger than the allowed size only part of file is opened and warning message appears: “The file size (16.1 MB) exceeds configured limit (2.56 MB). Code insight features are not available”

To allow large file size open there is needed to make configuration changes.

Go to menu and click Help -> Edit custom properties, then the file are created and is ready to add configuration:

# custom PyCharm properties

# 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.

# Maximum file size (kilobytes) IDE is able to open.

When opening large files a lot of memory is consumed and also there is needed to increase Pycharm java memory. In MacOS go to the following location: ~/Library/Preferences/PyCharm2018.3 and edit file pycharm.vmoptions by changing Xmx value like in the example below:

$ cat pycharm.vmoptions 


At the end restart Pycharm and now large files like 39 MB maximum can be opened.

Leave a Reply