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
Copy/Paste from other apps such as Visual Studio - losing formatting
Moderators: Alexander Halser, Tim Green
- Darren Rose
- Posts: 204
- Joined: Sat Mar 03, 2012 3:01 pm
-
- Posts: 122
- Joined: Fri Mar 06, 2015 12:09 pm
- Tim Green
- Site Admin
- Posts: 23186
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Copy/Paste from other apps such as Visual Studio - losing formatting
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.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.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
- Darren Rose
- Posts: 204
- Joined: Sat Mar 03, 2012 3:01 pm
Re: Copy/Paste from other apps such as Visual Studio - losing formatting
BUT it used to work perfectly fine....
-
- Posts: 122
- Joined: Fri Mar 06, 2015 12:09 pm
Re: Copy/Paste from other apps such as Visual Studio - losing formatting
So did you check my pointer if it is relevant?
- Darren Rose
- Posts: 204
- Joined: Sat Mar 03, 2012 3:01 pm
Re: Copy/Paste from other apps such as Visual Studio - losing formatting
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
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
- Darren Rose
- Posts: 204
- Joined: Sat Mar 03, 2012 3:01 pm
Re: Copy/Paste from other apps such as Visual Studio - losing formatting
Solution if copying from Visual Studio
Go to Tools | Options -> Text Editor -> Advanced-> Check the box “Copy rich text on copy/cut”
Go to Tools | Options -> Text Editor -> Advanced-> Check the box “Copy rich text on copy/cut”