Page 1 of 1
SOLVED: Is that a bug of paste function?
Posted: 01 Apr 2022 04:40
by kendling
In a text file like:
Code: Select all
aaa|<- 1. start select from here.
bbb|<- 2. end of select here.
ccc|<- 3. copy and paste in here.
ddd
After that it will be like:
But I want it to be:
Re: Is that a bug of paste function?
Posted: 01 Apr 2022 07:35
by pjj
You need to switch off "smart paste" feature (Environment > Options > Editor > General > Editing > Enable smart paste). A quote from the help file:
Smart paste (Shift+Ctrl+V)
The paste function will try to preserve the indention of the copied text even if it's placed in a very different position.
In column mode you can use it to paste a single line of text to all selected rows.
Re: Is that a bug of paste function?
Posted: 01 Apr 2022 08:19
by kendling
pjj wrote: ↑01 Apr 2022 07:35
You need to switch off "smart paste" feature (Environment > Options > Editor > General > Editing > Enable smart paste). A quote from the help file:
Smart paste (Shift+Ctrl+V)
The paste function will try to preserve the indention of the copied text even if it's placed in a very different position.
In column mode you can use it to paste a single line of text to all selected rows.
That's it! Thanks!
This behavior is weird.
Re: Is that a bug of paste function?
Posted: 01 Apr 2022 08:58
by pjj
kendling wrote: ↑01 Apr 2022 08:19
This behavior is weird.
It makes more sense (in certain circumstances) when you copy and paste more than one line
Re: Is that a bug of paste function?
Posted: 07 Apr 2022 03:41
by kendling
Copy that.