SOLVED: Is that a bug of paste function?

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
kendling
Posts: 18
Joined: 01 Apr 2022 04:34

SOLVED: Is that a bug of paste function?

Post 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:

Code: Select all

 aaa
 bbb
 ccc
     bbb
 ddd
But I want it to be:

Code: Select all

 aaa
 bbb
 ccc
 bbb
 ddd
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Is that a bug of paste function?

Post 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.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
kendling
Posts: 18
Joined: 01 Apr 2022 04:34

Re: Is that a bug of paste function?

Post 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.
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Is that a bug of paste function?

Post 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 ;)
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
kendling
Posts: 18
Joined: 01 Apr 2022 04:34

Re: Is that a bug of paste function?

Post by kendling »

Copy that.
Post Reply