Usually, whenever I paste some code into the editor, it tries to "understand" the context and reformat surrounding code accordingly: indenting/unindenting previous/following lines, etc.
Only it usually does it wrong, and sometimes I only notice when running the (now broken) code. It's OK that the pasted text itself is reformatted, but I didn't want PyCharm to touch the surroundings.
Is there a way to prevent this? I looked at the settings, but couldn't find anything in that regards.
Thanks in advance,