Forum Discussion
Why does Teams always strip indentation when pasting text?
- May 14, 2021
my-kl
So I got to the heart of the matter. I used the Clipboard Inspector to inspect the contents of clipboard when copying the same text from two different apps. Both have two entries. One of the entries is text/html and one is text/plain. The text/plain as you might guess is identical. The html is quite different. I then copied the html and rendered.
This is what I see from TextEditThis is what I see from Visual Studio Code
So this would appear to be an issue with my environment in Visual Studio Code (or even a defect in Code, I"m not sure)
same issue when not pasting, but just typing... trying to write up pseudo-code to colleagues while explaining a concept, and all indentation, leading white space is stripped. Quite frustrating. I know we can spend the extra time to create a little code snippet tool, but when writing back and forth to colleagues on code design and concept, it just isn't practical
Yeah... Teams is total garbage. Let's not make excuses for Microsoft by saying the problem has a workaround. This is the most basic stuff there is.
If you copy plain text to your clipboard, you should be able to paste it into Teams without having it strip leading spaces. Copying from most applications will put plaint text as well as a few different forms of formatted text (rich-text, html). This way, if you are pasting to an application that understands those formats, you can keep all the extra colors/fonts/tables/etc. Many applications even give you this control when you paste, by having another option under the Edit menu that explicitly says, "Paste in plain text". The equivalent (you'd think) in Teams says "Paste and Match Style", except, it still strips your spaces.
I noticed recently that when I'm typing a message in Teams, typing cmd-a (the equivalent of ctrl-a on Windows), that shortcut seems to be completely ignored. I can click Edit > Select All... but I don't want to touch the mouse for a shortcut that Microsoft invented... it's been around since at least Windows 3.0. How is it that they keep managing to bugger up TYPING in Teams?!?
- GregB945Jan 10, 2022Copper Contributor
Nshaw funny you say that, I (on a Windows machine, therefore using ctrl + a) also have the same issue lately, it's like they completely removed keyboard shortcuts.
There are many times I am typing a response and the conversation goes a different direction while I type and therefore need to trash what I was writing, going to try ctrl + a and rewrite a new message, I now need to use my mouse just to delete the current text... frustrating!- NshawJan 10, 2022Copper ContributorYeah, my normal use-case is that I'll hit ctrl+a, ctrl-x, then respond to something really quickly, then hit ctrl-v to get back to my monologue. 😉