Hartmut Pfarr
Hartmut Pfarr

Reputation: 6139

Word wrapping in PyCharm Python Console?

Anybody here who knows, if and how I could enable word wrap in the Python console for long lines? I can't see them as a whole, I have always to scroll the window to the righit, to get all informations. I have only 5 Buttons offered: rerun, stop, close, execute current statement, help.

(in contrast to this, in Event Log, I see buttons called "Use soft wraps".)

Upvotes: 73

Views: 53357

Answers (7)

Hartmut Pfarr
Hartmut Pfarr

Reputation: 6139

I found the answer here:

File -> Settings -> Editor -> "Virtual Space" group -> Use soft wraps in console

In PyCharm version 2018.3.3 it can be found under

File -> Settings -> Editor -> General -> Console: Use soft wraps in console

In PyCharm version 2021.2.4 on OS X it can be found under

PyCharm -> Preferences -> Editor -> General -> Console

Upvotes: 50

Will Chen
Will Chen

Reputation: 41

As of 2018 - I found the setting here:

Settings -> Editor -> General -> Console -> Use soft wraps in console:

Settings -> Editor -> General -> Console -> Use soft wraps in console

Upvotes: 3

Videonauth
Videonauth

Reputation: 423

Starting with Pycharm Community Edition 2016.1, the settings mentioned in other answers are gone.

However, with the debug console opened (i.e. run your python script), click the Use Soft Wraps button there, this will also affect the python console, without any restart needed.

Soft Wraps button

Upvotes: 31

Laser Hawk
Laser Hawk

Reputation: 2028

Community edition its Preferences>Editor>General>Use Soft Wraps in Editor and then to be super cool you can go Preferences>Editor>General>Console>Use Soft Wraps in Editor

Soft wraps

Upvotes: 9

Charles Brodhead III
Charles Brodhead III

Reputation: 71

For Pycharm Professional 2016.3.2 on Windows:

Click on the upper half of the Python Console (i.e. the output half, not the input line at the bottom).

On the main menu select Help and Find Action... (shortcut: CTRL + SHIFT + A).

Type "soft" in the "Enter action or option name" search box.

Toggle "Active Editor: Use Soft Wraps" to On.

Run a new command with long output and you should see it soft wrapped in the Python Console. Note, that previous output will not be wrapped.

(None of the above methods worked for the Python Console -- though they did work for the Debug Console and Event Log)

Upvotes: 7

R J
R J

Reputation: 4563

For PyCharm version 4.5, soft wrap can be enabled as a global default here:

File > Settings > Editor > General > Soft Wraps > "Use soft wraps in editor"

Upvotes: 12

Bing Ren
Bing Ren

Reputation: 1775

for version 3.4.1:

View -> Active Editor -> Use Soft Wraps

Upvotes: 75

Related Questions