Clear the console completely in RubyMine (or WebStorm or PhpStorm)

I'm trying to figure out if there is a way to completely clear the console in RubyMine (or any other JetBrains environment like WebStorm or PhpStorm).

I saw the answer to this question: RubyMine to clear the embedded console .

Unfortunately, this is not entirely clear, the console simply moves the console window so that the current line is at the top of the screen. Very similar to the "clear" in Linux.

Sometimes I run a command with a lot of information displayed in the console, and I want to see the first thing it said, but when the console is cleared this way, I find that I can lose where I indicated the command within all the garbage that is printed before and after .

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

So far, the only thing I have found is to click the plus button on the left side and open a new console window, but I think this is a little tedious.

I use this on Ubuntu if that matters, but I believe I had the same problems on Windows.

+7
source share
2 answers

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

+17
source

Ctrl + k will do the job when the terminal is focused or pressed.

0
source

All Articles