Google-docs – Pasting with colours and formatting Google Document

copy/pastegoogle docs

I've copied some sample code from Visual Studio 2013 (in Microsoft Windows 8).
I'm doing ctrl + v to paste into an online Google Document.

The paste loses all the formatting and text.
Is there anyway to get around this?

We don't want to paste a screenshot, as we want editable text which retains color + formatting.

Best Answer

Without a sample from Visual Studio 2013 (in Microsoft Windows 8) to hand, I can't be sure but believe enhancements to Docs since OP was posted have changed the circumstances upon which the question was based. Certainly now Ctrl+v does not lose "all the formatting and text", necessarily.

For example the clip on the left is from Word and on the right from Docs after the text in Word was pasted there:

Word Docs

There were changes around the time the web clipboard was 'retired' in September 2017.