Open raffaeler opened 2 months ago
@raffaeler, can you please confirm this is VS only issue and you do get colorized code when you copy from VS Code? I'm asking because Office recently changed how Paste works (now by default Word doesn't paste with formatting): https://techcommunity.microsoft.com/t5/microsoft-365-insider-blog/updated-default-paste-option-in-word-for-windows/ba-p/4225168
I wonder if you could be hitting this.
@olegtk Yes, I confirm that. I checked several times the PPTX options hoping that it could solve, but it was not the case. I currently reverted to VSCode with the light theme which exaxtly matches all of the coloring in PPTX 2021.
The VSCode coloring is still slightly different, but does not have the issues I wrote in the initial post.
Thanks
@raffaeler, please use "Help/Send Feedback/Report a problem" in VS to create a feedback ticket and record couple Copy command executions. Then please post the link to the ticket here, we will investigate. Thanks!
I am using the 17.0.4 with VS2022 17.12.0P2. When I paste some colored code from the C# text editor, the result is always black on a white background.
There are two issues here:
UseAccurateClassification
(Tools-Options-Productivity Power Tools- HTML Copy)CopyBackground
toFalse
and remove{background}
from the<pre
tag, the background is always a shiny white (instead of staying transparent).The only workaround I found is to revert using Visual Studio Code.