See if How can I increase scrollback of the Output-window in Arduino IDE 2 - #4 by ptillisch provides the solution.