How can I keep spaces before comments?

Spaces before comment are always disappeared when reformatting the code.

Is there any option related to this? I want to align comments to match with red line.

1 comment
Comment actions Permalink


Unfortunately there doesn't seem to be a way to disable that. There are some settings related to spaces and "#" in "File | Settings | Editor | Code Style | Python >> Spaces", but this particular behavior doesn't seem to be configurable. 

Please feel free to create a feature request in our issue tracking sytem:


Please sign in to leave a comment.