I want to turn off code auto-formation in PyCharm
I often get my comments auto-formatted
from
#my comment
to
# my comment with space inserted
I want to turn this off and found via google this article from JetBrains; though I cannot find the guided option in my PyCharm as snapshots below.
I'm using
PyCharm 2016.2.3
Build #PY-162.1967.10, built on September 7, 2016
look under Preferences -> Editor -> General -> Smart Keys -> Reformat On Paste and set to 'None'. see screen.
UPDATE: looks like the suggestion above didn't work, but i did find another editor setting (python-specific) that will auto-format your code. see attached screenshot. you can get to the setting via:
Preferences->Editor->Code Style->Python
near the bottom. deselect the after #
setting and try again. this worked for me -- it allowed me to paste the string you had above without having it auto-formatted. HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With