I recently started using the terminal window inside of IntelliJ IDEA so that I don't context switch between IDE and the Mac terminal window.
On my Mac terminal, I had set "unlimited scrollback" to true which means that when I am running my unit tests, I can scroll through the entire run.
Now inside of IntelliJ terminal, when I run my tests, it truncates the output and therefore I cannot go to the beginning of the test run.
I tried looking in the settings, but I didn't find anything which will give me a unlimited scrollback.
open "File" => "Settings..." => "Editor" => "General" => "Console" activate "Override console cycle buffer size" from its default value of 1024kB to your needs. restart the IDE.
In the run/debug configuration that will be used for launching the app, click the Logs tab. The Edit Log Files Aliases table displays the list of log files. Select Save console output to file Specify the path to the file.
Opening Multiple Terminal Sessions For this, we can split our terminal window by right-clicking on it and selecting one of the options so that we can run two in the same window. For example, you can open up the mongo shell in this split window and can see if the commands have any impact on the running server.
Press Ctrl+L in the built-in terminal in IDE. It clears the terminal. Go to "Settings | Keymap" and remove Ctrl+L keyboard shortcut from "Plugins | Terminal | Clear Terminal" action.
you can increase the lines of the terminal if you desire: In intellij goto the registry (press cntrl+shift+a and write registry, and click it). look for: terminal.buffer.max.lines.count and increase it from the 1000 lines it has. (I entered 9999 and for my runs it did the job)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With