pycharmpython-importline-breaks

Pycharm how to stop line wrap/break a long import line


When auto-import a method/module in PyCharm, our import line get wrapped into 2 lines if it is too long.

How can we stop that?


Solution

  • This is resolved by setting right margin with hard wrap at set to a very big number eg 666 view ref

    enter image description here