Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 238
Hartmut Pfarr Avatar asked Mar 03 '13 02:03

Hartmut Pfarr


People also ask

How do I enable word wrap in Python?

The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. If necessary, you can add an extra pair of parentheses around an expression, but sometimes using a backslash looks better. Make sure to indent the continued line appropriately.

How do I use Python console in PyCharm?

You can assign a shortcut to open Python console: press Ctrl+Alt+S , navigate to Keymap, specify a shortcut for Main menu | Tools | Python or Debug Console. The main reason for using the Python console within PyCharm is to benefit from the main IDE features, such as code completion, code analysis, and quick fixes.


1 Answers

for version 3.4.1:

View -> Active Editor -> Use Soft Wraps

like image 126
Bing Ren Avatar answered Sep 29 '22 12:09

Bing Ren