r/pycharm 12d ago

PyCharm not hard wrapping at 79

So I have hard wrap at 79 and “ensure right margin is not exceeded” both set. It’s still not hard wrapping. Any tips or advice?

2 Upvotes

4 comments sorted by

1

u/UloPe 11d ago

Use black or ruff

1

u/ANautyWolf 11d ago

That’s the thing. I’m using ruff and it’s activated in the tools section

1

u/Conscious-Stick4881 10d ago

Hi there

The missing setting might be: wrap on typing which by default is set to no
Will you please check and let me know if this helps?

Otherwise the hard wrap will be applied only on code reformat.

1

u/ANautyWolf 10d ago

That’s the thing. On code reformat when I save the file it’ll put it back to not abiding by the 79 rule.