Tuesday, December 13, 2011

File size in IntelliJ

I'm currently working on a java project and using IntelliJ as my prefered development environment. Yesterday I was generating a jUnit test class with 401 test methods. I realize that a java class with 401 methods in it is an abomination of sorts but it was so much easier to generate it as one file instead of several so I chose to do that nevertheless. Unfortunatly IntelliJ refused to accept my class as code and simply refused to recognise it for what is was. It drove me crazy but the nice folks at jetbrains helped me out. As it turns out there is a setting in idea.properties for this.
# 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.
So, I simply increased the filesize and that was it.

No comments: