119

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

Braiam
  • 1
  • 11
  • 47
  • 78
Nam G VU
  • 33,193
  • 69
  • 233
  • 372

7 Answers7

213

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

enter image description here

SaeX
  • 17,240
  • 16
  • 77
  • 97
15

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

Dan Gamble
  • 3,965
  • 1
  • 24
  • 44
14

If you want to permanently enable soft wrap for certain file extensions, it can be configured in Settings > Editor> General. Under the title Soft Wraps, add your required file extension.

Depiction Image

The settings can also be accessed by right-click on the line-numbers and selecting Configure Soft Wraps as explained here. Also shown here.

enter image description here

PS: I know it is not what is asked in the question, but this was the first google result when I searched for configuring soft wraps. So, I added the answer here in case anybody else comes looking up for the same.

Nagabhushan S N
  • 6,407
  • 8
  • 44
  • 87
11

There's also another way to accomplish this easily.

View -> Active Editor -> Soft-Wrap

The "View" is in the toolbar of Pycharm (Pycharm, File, Edit, View....)

Joseph Francis
  • 1,111
  • 1
  • 15
  • 26
1
  1. Click on "FILE" Top left in Pycharm editor
  2. Goto Settings
  3. Click on Editor
  4. Click on General
  5. Select the soft wrap option
  6. You can edit such that *.py, *.extension, etc.
  7. Click on Apply

Follow each step properly

1

vimuth
  • 5,064
  • 33
  • 79
  • 116
0

For PyCharm community2020

Follow: File->Setting->Editor->General->soft-wrap these files

enter image description here

Checked:Soft-wrap these files and

Edit: *.py at the end followed by semicolon ';'

enter image description here

Hope,this answered the question!

Nagabhushan S N
  • 6,407
  • 8
  • 44
  • 87
0

Hit double shift and start typing what you want to do. softwrap

This will automatically selects the first action.

Just hit enter and voilà

enter image description here

dgor
  • 704
  • 6
  • 19