Copy/Paste from other apps such as Visual Studio - losing formatting

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
Darren Rose
Posts: 204
Joined: Sat Mar 03, 2012 3:01 pm

Copy/Paste from other apps such as Visual Studio - losing formatting

Unread post by Darren Rose »

Hi

I often need to copy extracts of code from Visual Studio in to H&M - keeping the formatting / colouring etc, and in the past this used to work okay, but lately for some reason it is not working and whatever I do it just pastes it as plain text.

Any thoughts?

Is this a H&M issue or a more general Windows 10 issue?

Thanks
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Copy/Paste from other apps such as Visual Studio - losing formatting

Unread post by Tim Green »

Darren Rose wrote: Sat Sep 19, 2020 4:00 pm I often need to copy extracts of code from Visual Studio in to H&M - keeping the formatting / colouring etc, and in the past this used to work okay, but lately for some reason it is not working and whatever I do it just pastes it as plain text.
You're not seeing formatted text when copying from Visual Studio because it is not formatted in Visual Studio. It is plain text. If it wasn't you wouldn't be able to use it as source code. That is why you use a code editor for source code and not a formatted text program like Word. Syntax highlighting in programming IDEs like Visual Studio -- or any code editor like NotePad++ or SublimeText or VS Code or anything else -- is applied dynamically as user information only and is never ever part of the text. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Darren Rose
Posts: 204
Joined: Sat Mar 03, 2012 3:01 pm

Re: Copy/Paste from other apps such as Visual Studio - losing formatting

Unread post by Darren Rose »

BUT it used to work perfectly fine....
Gerold Krommer
Posts: 113
Joined: Fri Mar 06, 2015 12:09 pm

Re: Copy/Paste from other apps such as Visual Studio - losing formatting

Unread post by Gerold Krommer »

So did you check my pointer if it is relevant?
User avatar
Darren Rose
Posts: 204
Joined: Sat Mar 03, 2012 3:01 pm

Re: Copy/Paste from other apps such as Visual Studio - losing formatting

Unread post by Darren Rose »

Hi Gerold

Sorry meant to respond, yes I have tried it on another computer to confirm the issue and copy/paste work fine in all other apps
User avatar
Darren Rose
Posts: 204
Joined: Sat Mar 03, 2012 3:01 pm

Re: Copy/Paste from other apps such as Visual Studio - losing formatting

Unread post by Darren Rose »

Solution if copying from Visual Studio

Go to Tools | Options -> Text Editor -> Advanced-> Check the box “Copy rich text on copy/cut”
Post Reply