How to copy code from vscode to wps without black background

Project scenario:

Sometimes the code copied from vscode to wps will have a background color, as shown in the figure below:
Insert image description here
What to do if you don’t want this background.


solution:

1. Select the part where the background image needs to be modified;
2. Change [Page Layout]->[Page Border]->[Shading]->[Fill] to: no color. [Apply to (L):]: Paragraph. After clicking [OK],
Insert image description here
the setting will change to:

Insert image description here
3. Set [Apply to (L):] as follows: text.
Insert image description here
After modification, it becomes:

Insert image description here
The background color is cleared.

Guess you like

Origin blog.csdn.net/migexiaoliang/article/details/127140727