222

Looks like there is a limit on the number of lines it shows.

I couldn't find it in the settings.

Is there a way to make IDEA keep everything in the Output window?

lospejos
  • 1,976
  • 3
  • 19
  • 35
expert
  • 29,290
  • 30
  • 110
  • 214

2 Answers2

276

Preferences/Settings -> Editor -> General -> Console, check the box next to Override console cycle buffer size, set to a larger number than 1024 KB.

Screenshot of the Setting Window

jeremysprofile
  • 10,028
  • 4
  • 33
  • 53
Pradatta
  • 3,000
  • 1
  • 18
  • 22
  • 2
    What version of IntelliJ is that? I don't have Console under Editor > General in version 14. In fact, my General sub-elements are *very* different than the screen shot. – E-Riz May 02 '16 at 18:28
  • @E-Riz IntelliJ IDEA 15.0.6 on Mac has all of those settings – Ed Norris Jun 10 '16 at 16:58
  • 2
    This is a better answer than the chosen answer above, since it'll handle updates of IDEA without getting a conflict of the idea.properties-file. – mortensi Aug 07 '17 at 07:13
  • Not effective on phpstorm 2019.1, why ??? – DevMoutarde Aug 27 '19 at 10:24
  • Worked for me. The max number of KB that work without intelliJ warning that "large buffer size can cause performance degradation" is 20480, at least on my computer and intelliJ version. – asherbret Jan 10 '22 at 10:59
138

Couldn't get more votes to close the question so I have to answer it myself.

IDEA_HOME\bin\idea.properties

#-----------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb). Older lines are deleted.
# In order to disable cycle buffer use idea.cycle.buffer.size=disabled
idea.cycle.buffer.size=1024 
expert
  • 29,290
  • 30
  • 110
  • 214
  • 1
    is this kilobytes or megabytes? – bharal May 28 '13 at 15:52
  • 4
    @bharal It says in comment that it's Kb. – expert Sep 02 '13 at 05:53
  • 1
    See comment in file: # This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb). # Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled Also, remember to udpaet settings after upgrade (like 12-> 13) as it creates new .properties – maosmurf Jan 16 '14 at 17:44
  • 1
    For my distro (Arch), `idea.properties` is located at `/usr/share/intellij-idea-ultimate-edition/bin/idea.properties`. Note that for Linux (unlike Mac) you don't need to create a copy of this file. – Babken Vardanyan May 12 '15 at 13:18
  • 11
    For my distro (OS X) it was `vi "/Applications/IntelliJ IDEA 14 CE.app/Contents/bin/idea.properties"` – rogerdpack May 18 '15 at 20:35
  • `idea.cycle.buffer.size=disabled` worked for me +1. – Eng.Fouad Sep 29 '15 at 00:25
  • 6
    Does it works also for the terminal window? – Daniele Nov 23 '16 at 15:12
  • 1
    Looks like it doesn't. – krizajb Sep 25 '18 at 07:51