Word wrapping in PyCharm Python Console?

42,708

Solution 1

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

Solution 2

for version 3.4.1:

View -> Active Editor -> Use Soft Wraps

Solution 3

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

Solution 4

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"

Solution 5

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

Share:
42,708
Hartmut Pfarr
Author by

Hartmut Pfarr

Updated on February 11, 2020

Comments

  • Hartmut Pfarr
    Hartmut Pfarr over 4 years

    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".)

  • kevinmicke
    kevinmicke over 9 years
    This answer is actually about the editor, not the console. Also, this only works on a file-by-file basis (you'd have to set it separately for each file). To set it globally for ALL files you edit, the checkbox is right above the one in @Hartmut's answer below: File -> Settings -> Editor -> "Virtual Space" group -> Use soft wraps in editor.
  • ravi.zombie
    ravi.zombie over 8 years
    works for Mac Pycharm edition 4.5 View- Active Editor -> Use Soft Wraps
  • Chris
    Chris almost 8 years
    Same for the Pro version 2016.2 - great spot thanks! Poor show Jetbrains!
  • navigator_
    navigator_ over 7 years
    Thanks, this was bugging me!
  • emorris
    emorris over 7 years
    This does work for the console, as well as the editor. It affects the currently active editor/tool window, so ensure the console is active (click in it) first.
  • AnneTheAgile
    AnneTheAgile about 6 years
    I have pro, and none of the other posts worked in 2018-1 version.
  • Wok
    Wok about 6 years
    This works with PyCharm Professional Edition 2018.1.3.
  • simpleuser
    simpleuser almost 6 years
    PyCharm 2018: File→Settings→Editor→General→Console: Use soft wraps in console
  • n1000
    n1000 over 4 years
    In my new project in 2019.2, the icons have disappeared??
  • Videonauth
    Videonauth over 4 years
    @n1000 The icon on the very top of the python console is for using soft wraps, as of now in my 2019.2.4 version. If you have there no Icons at all you should check the installation maybe, if you have updates, that is, it could be the cause of the IDE not working as expected.
  • n1000
    n1000 over 4 years
    @Videonauth Thanks! I just noticed that the icons are only missing if I am debugging a pytest script... In debug windows for regular scripts, it is still there.
  • seasmith
    seasmith over 3 years
    this is the only way i could get it to work in 2020.2.3
  • seasmith
    seasmith over 3 years
    after this did not work on 2020.2.3 community, i had to try stackoverflow.com/a/38149710/5228718
  • DPSSpatial
    DPSSpatial about 2 years
    There's another setting tucked in this page for when working with markdown and other file types in PyCharm (I'm using its great markdown editor!!) programmersought.com/article/29724237816