How to disable auto indent when <shift>+<up/down>-ing lines of code (even comments)
Somehow Pycharm idents the h*ll out of things. Even my comments when shuffled around get indents. How can I disable this?
NB: I already disabled: Editor > General > Smart Keys > Enter > Smart indent ... but that did not work.
Starting position:
|# line 2
# line 1
(| is cursor)
When I execute shift+down. This is what I end up with:
# line 1
|# line 2
Any tips greatly appreciated.
Thanks!
Please sign in to leave a comment.
Hi,
What PyCharm version do you use? Are there any custom plugins installed?

This is not a default behavior and it works fine in my environment:
Thanks for you reply. I'm using Pycharm 2020.2 professional. Could it be related to the file type I chose?
I'm not sure. It's the first time I see this issue.
Do you use a different file type for *.py?
The extension is .sls (from Saltstack) but is actually yaml
I just tried it with .sls file associated with YAML file type and the issue doesn't reproduce.
Could you file a ticket to our issue tracker and provide file and steps for reproducing the problem? https://youtrack.jetbrains.com/issues/PY
We'll do. Thanks for your help!