On a Mac, to copy text as plain text in Visual Studio Code:
Install the "Copy Plain Text" extension.
Use the shortcut "Ctrl + Option + C" to copy in plain text.
Paste the copied text as usual using "Cmd + V".