Understanding "Reformat on paste" and "smart indent pasted lines"
I want to understand the expected outcome with "reformat on paste" and "smart indent pasted lines".
Using the following settings
I want to copy line 355 to 359.
I highlight the line and hit CTRL-C
I put the cursor at the end of line 359 and hit CTRL-V. The line de-indents in a way not expected.
Setting reformat on paste to None has no change in affect.
If I disable smart indent pasted lines...
The line pastes where I expect it to
So my question is, what is smart indent doing? Am I witnessing a bug or do I simply not understand how it is supposed to work?
Please sign in to leave a comment.
Reading the help page would lead me to believe the affects of this setting are perhaps inverted.
PyCharm is awesome but I must say this "Smart indent pasted lines" is not smart at all. Who wants to have to type tab to desired indent level when they paste something? I finally turned it off, which then pastes as-is. However, if you then turn on the Reformat on Paste, it works quite nicely, i.e. as one would expect it to.