Word wrapping in PyCharm Python Console?
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.
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
![Hartmut Pfarr](https://i.stack.imgur.com/myngf.jpg?s=256&g=1)
Hartmut Pfarr
Updated on February 11, 2020Comments
-
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 over 9 yearsThis 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 over 8 yearsworks for Mac Pycharm edition 4.5 View- Active Editor -> Use Soft Wraps
-
Chris almost 8 yearsSame for the Pro version 2016.2 - great spot thanks! Poor show Jetbrains!
-
navigator_ over 7 yearsThanks, this was bugging me!
-
emorris over 7 yearsThis 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 about 6 yearsI have pro, and none of the other posts worked in 2018-1 version.
-
Wok about 6 yearsThis works with PyCharm Professional Edition 2018.1.3.
-
simpleuser almost 6 yearsPyCharm 2018: File→Settings→Editor→General→Console: Use soft wraps in console
-
n1000 over 4 yearsIn my new project in 2019.2, the icons have disappeared??
-
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 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 over 3 yearsthis is the only way i could get it to work in 2020.2.3
-
seasmith over 3 yearsafter this did not work on 2020.2.3 community, i had to try stackoverflow.com/a/38149710/5228718
-
DPSSpatial about 2 yearsThere'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