141

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

6 Answers 6

241

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

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

Oh, so hidden on line number ^^ - I actually tried right-clicking o empty spaces :D
it is really ugly though, the "newline" starts all the way at the left edge
6 years later, and this answer is still correct. TY.
18

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.

1 Comment

That's in my opinion the best way to do it.
16

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

Comments

14

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

Comments

3

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

Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.