microsoft / VS-PPT

Productivity Power Tools - a set of Visual Studio extensions improving developer productivity.
http://aka.ms/extendvs
Other
887 stars 146 forks source link

C# copy results in black&white #273

Open raffaeler opened 3 weeks ago

raffaeler commented 3 weeks ago

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:

  1. I get no colorized paste even if I put UseAccurateClassification (Tools-Options-Productivity Power Tools- HTML Copy)
  2. Even if I set CopyBackground to False 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.

olegtk commented 1 week 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.

raffaeler commented 1 week ago

@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

olegtk commented 3 days ago

@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!