Home > Mobile >  Intellij How to shorten the first line in console?
Intellij How to shorten the first line in console?

Time:04-05

I want my first line at the top of the console to look like this: enter image description here

but mine looks like this and its so loooongenter image description here

how can I shorten it to like the first picture? ;-;

Im watching Java tutorials on youtube and their first lines ("C:\programs Files\Java\jdk\whatever"...) are always so short and pretty with 3 cute dots in the end... but mine is long asf and it goes on for days and its annoying.

basically: "8==================================D" to "8=D"... HOW?! >:(

CodePudding user response:

You can define the lines which should be folded:

  1. Right click on that line in the console
  2. Choose "Fold Lines Like This"
  3. Click OK

You can also define special keywords/phrases in this menu, where lines, which contains the phrase will be folded with ellipsis (...) at the end.

CodePudding user response:

See the ConsoleViewImpl.java file in the source code of IntelliJ IDEA

This line (execution command) will be automatically hidden in case the string length is more than 1000 symbols.

So, once you add something to the execution command (for example by adding libraries), the execution command is folded automatically.

  • Related