Search code examples
terminalconsolephpstormwebstormrubymine

Completely clear the console in RubyMine (or WebStorm or PhpStorm)


I am trying to see if there is a way to "completely" clear the console in RubyMine (or any other JetBrains IDE like WebStorm or PhpStorm).

I've seen an answer for this question: RubyMine any way to clear the inbuilt console.

Unfortunately, that doesn't really clear the console, it just moves the console window so that the current line is at the top of the screen. Pretty much like "clear" does in Linux.

Sometimes, I run a command that has a lot of information display in the console and I want to see the first thing that it said, but when the console clears this way, I find that I can lose where I stated the command within all the junk that gets printed before and afterwards.

I would prefer something like reset in Linux or cls in Windows that actually clears the console, but these seem to have the same effect as clear when I'm in RubyMine

So far, the only thing I've found to do is hit the "plus" on the left side and open a new console window, but I find that a bit tedious.

I'm using this in Ubuntu, if that makes a difference, but I believe I've experienced the same issues in Windows as well.


Solution

  • Right click and select Clear buffer or just press Ctrl + K when the console is focused.