Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS code indentation when copying and pasting is messed up

Why is the indentation almost always messed up when copying and pasting code in VScode?

For example:

Copying:

Copy Example

Pasting:

Pasting example

Another example:

copy example

paste example

And it's sometimes even more messed up.

Is there a way to fix it?

like image 324
shinzou Avatar asked Mar 12 '17 12:03

shinzou


1 Answers

I'm new to VSCode, but do you have "editor.formatOnPaste": true?

like image 200
Bob Rockefeller Avatar answered Oct 01 '22 18:10

Bob Rockefeller