
Like I said, not a fix, but a shorter work around. You can now copy and paste without the black background (and the code highlighting obviously) Type pyWithSyntaxHighlighting in the search bar and then untick the box labelled Controls whether syntax and then close the settings page To enable this, open VSCode (I’m using the insider version, but it will work in both) and browse to File > preferences > Settings This still isn’t perfect, but it cuts out the step using Notepad.

The important part is the excellent suggestion below by this settings change does, is to allow you to copy and paste from VSCode without any formatting or syntax high lighting. This is something that really annoys me, so I often do a quick Bing search to see if there are any solutions. This will remove the background colour and the rest of the formatting and will allow you to past it into your desired application. To get round this, you can copy the code into an application that doesn’t allow formatting, like Notepad. Id like to go into Tools/Options/Fonts and Colors and look up the main pane workspace background color and darken it. When I open a solution, the primary background for the workspace is a light blue, based on the color scheme of blue.

When you paste code, copied from VSCode, you can unfortunately get the background colour as well In visual studio 2019, I added the extension for SSRS Report projects.
