Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there are only 75 visible characters in Intellij Idea's embedded terminal?

When I use Idea's embedded command prompt in the tools window I can only see 75 characters. The chars are there but they are not visible:

C:>echo "This is the sentence I want to show you but I get only 75 characters h "This is the sentence I want to show you but I get only 75 characters here"

Neither have I found any setting for this, nor have I found someone with the same problem by googling

Idea version is 13.1.13 on Windows 7 with jdk 1.7x

Outside idea, cmd.exe's (Version 6.1.7601) configuration is not limiting anything to 75

like image 665
Gabriel Xunqueira Avatar asked Jul 24 '14 14:07

Gabriel Xunqueira


People also ask

How do I change the terminal type in IntelliJ?

Press Alt+Right and Alt+Left to switch between active tabs. Alternatively, you can press Alt+Down to see the list of all terminal tabs. To rename a tab, right-click the tab and select Rename Session from the context menu.

How do I show terminal in IntelliJ?

Opening a Terminal Window We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all the same commands that the operating system supports. and press enter.

How do you fix command line is too long shorten command line in IntelliJ IDEA?

Run > Edit Configurations... Select a test (better to select a parent test class) and set a Shorten command line: option to classpath file . Then OK (or Apply, OK). Using the JAR manifest option in shorten command line worked for me.

How do I clear the terminal console in IntelliJ?

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.


1 Answers

Notice: since IDEA 2016.3.2 this breaks the terminal and is not required anymore. So just delete it when you update to a version it cannot create the Terminal.

For windows change the terminal shell path (File->Settings->Tools->Terminal) from cmd.exe to:

cmd.exe "/K mode con:cols=500 lines=9999&cmd.exe" 

or if using the bash for windows subsystem:

cmd.exe "/K set LINES=9999&C:\windows\system32\bash.exe" 

as described in the bug description (https://youtrack.jetbrains.com/issue/IDEA-117552)

Edit: wrap /K in quotes as well!

like image 152
estani Avatar answered Sep 18 '22 17:09

estani