I am working on a project that makes significant use of code generation. Some of the files it creates contain> 0.25 million lines of code. VS (2K5) doesn't cope too badly, but R # (4.01) throws an exception every two minutes or so.
Separating them into partial classes / separate files is not an option in the near future, although this may be later.
Are there any smart IDE tricks to solve this problem?
EDIT: So people immediately say (very reasonably) โdon't have a large fileโ and suggest ways to split it into smaller files.
This is great, but I am in the task of taking into account the time, considering and deciding what to optimize. My problem is very specific: "How to view an insanely large file in the IDE without pain" and not "how to reorganize the project." For the purpose of the question, please imagine that the file is read-only. :)
source share