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)
Hard to believe that this discussion has been around for 1 year and nothing has changed. What needs to happen for Teams to be useful for exchanging code?
If I copy and paste code as a quote, I can see it gets stripped of whitespace while I am writing the message. If I fix this in the quote box and then send it, it still gets sent without the whitespace! This is simply unacceptable.
And I have tried the code snippet. Apart from being slow and clunky, if the lines are too wide then you cannot read the code from the chat. There aren't any scroll bars either, you just cannot read the code without blindly selecting the truncated rows and pasting them somewhere else.
Giacomo_Mc_Evoy I think the issue is that I opened this up in a "community forum" rather than filing a bug in the appropriate place. I haven't investigated where bugs should be opened for Teams.