Hello,
I think the problem is that the copied text is formatted.
I found here a solution: Copy-paste code from Visual Studio, but paste UNFORMATTED code - Stack Overflow
Go to Settings > Search for editor.copyWithSyntaxHighlighting
and turn off. This is worked for me.