5

I'm working with some big txt files, (some around 3 GB), and whenever I have to check the txt files the message "File size exceeds configured limit (2.56 MB), code insight features not available" appear in the top of the file, I tried to change the file size by going to Help->Edit custom properties and then adding the next line of code in the file that opens

idea.max.content.load.filesize=500000

the problem is that even after closing and re-opening PyCharm the same message appears, do I need to do something else? just writing that line of code is enough to change the filesize?, it doesn't need to be run like a normal code? if so how can I run it since the option doesn't appear?

rypel
  • 4,686
  • 2
  • 25
  • 36
  • Do you need code insight? What kind of file is it? Extension, format? – Peter Wood Jul 08 '20 at 04:47
  • the extension format of the text file is txt. I looked up how to change the size of the file that PyCharm normally operates, and I found that line of code that I wrote but doesn't seem to be working – Miguel Fernando Macias Macias Jul 08 '20 at 04:57
  • The property you need to edit is `idea.max.intellisense.filesize`. However, it will cause an enormous drain on your memory and processor. https://www.jetbrains.com/help/pycharm/file-idea-properties.html – Peter Wood Jul 08 '20 at 05:06
  • 1
    in reality, I don't think I need it, I'm working with pre-trained word vectors for Spanish, the thing is that I need to clean the file because some of the words are from other languages, so I made a program to divide the file in smaller txt files, but its stops from an error "UnicodeEncodeError: 'charmap' codec can't encode character '\u0144' in position 1: character maps to " that's why I want to actually open the file and look for the words that causes this error, because its very likely that those words are not in spanish and that I have to delete them from the file – Miguel Fernando Macias Macias Jul 08 '20 at 05:06
  • I don't mind if it takes more of my memory size most of it isn't in use anyway, and I can't open the files in notepad or words because of its size – Miguel Fernando Macias Macias Jul 08 '20 at 05:12
  • idea.max.intellisense.filesize seems to work, I also rebooted my PC just in case and now the message of the file size doesn't appear – Miguel Fernando Macias Macias Jul 08 '20 at 05:18
  • Regarding the error: [UnicodeEncodeError: 'charmap' codec can't encode characters](https://stackoverflow.com/questions/27092833/unicodeencodeerror-charmap-codec-cant-encode-characters) – Peter Wood Jul 08 '20 at 06:14

1 Answers1

5

instead of using the original line of code I used

idea.max.intellisense.filesize = new size in kB 

also, I advise rebooting the Pc after adding that line of code in the window that appears after going to Help->Edit custom properties

rypel
  • 4,686
  • 2
  • 25
  • 36