Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm to toggle soft wrap in code editor

Tags:

pycharm

If you know how to toggle soft wrap aka. word wrap while editing code in Pycharm, please share.

My google search and SO search give me no helpful result(s).

Trying to look in Pycharm setting/preference not helps either.

p.s.

I'm using PyCharm Community Edition 2016.2

like image 307
Nam G VU Avatar asked Jul 26 '16 08:07

Nam G VU


People also ask

How do you enable or soft wrap in code?

wordWrap": "on" You can toggle word wrap for the VS Code session with ⌥Z (Windows, Linux Alt+Z).

What is soft wrap in PyCharm?

Wrap lines to eliminate the need of scrolling horizontally in order to see overly long lines. Enable soft wraps for the file types that tend to have lots of long lines (Preferences/Settings | Editor | General > Soft-wrap files).

What is wrap in editor?

Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between words rather than within words, where possible.

How do I enable soft wrap in IntelliJ?

You can enable soft wrap for the editor with ⇧⇧ (macOS), or *Shift+Shift (Windows/Linux), for the Search Everywhere dialogue, and then typing in soft wrap. You can also go to Preferences/Settings > Editor > General to enable Soft Wraps for more file types by default.


2 Answers

Right-click the the left side (with line numbering) and choose your soft wrap option:

enter image description here

like image 147
SaeX Avatar answered Sep 20 '22 17:09

SaeX


In the PyCharm keymap if you search for soft you get these results: img

I'm sure one of these will be what you are after

like image 36
Dan Gamble Avatar answered Sep 19 '22 17:09

Dan Gamble