Is there a "line comment at first column" option for Python in PyCharm?

Basically having the same issue as described here, but in Python/PyCharm.

I noticed it's solved for C in CLion but I can't find how to solve it in PyCharm.

Any advice?

0

In PyCharm line comments respect indentation

def foo():
if True:
# print('foo')
pass

If you need to disable this behavior, unfortunately there's no such option for Python. Please feel free to submit a feature request to our issue tracker at https://youtrack.jetbrains.com/issues , and let us know if you require any help.

0

请先登录再写评论。