PyCharm: automatic alignment of inline comments

I am using PyCharm 2016.2 to write my Python programs. Some of my inline comments look a bit messy:

code # comment code # comment more code # comment 

Is there a way for PyCharm to automatically align all inline comments in a section or file in a vertical line. So it looks like this:

 code # comment code # comment more code # comment 

In this regard: I tried to do this manually, but PyCharm sometimes messed up my indentation of comments, for example, when copying code. How to change this?

+5
source share

Source: https://habr.com/ru/post/1259370/


All Articles