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.
- my-klMay 13, 2022Brass Contributor
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.
- my-klMay 13, 2022Brass ContributorI just did a search for how to report an issue. One way is to use the Help | Give Feedback option within Teams itself, which I just did. We'll see if that helps.
- Giacomo_Mc_EvoyMay 13, 2022Copper Contributor
Hello! Thanks for answering. I also just noticed that this is a community forum, not exactly a bug reporting tool. I have also used Help -> Give Feedback, let's see if that helps somehow.
- agallowayCTAMay 27, 2022Copper ContributorWhat OS are you on? There doesn't appear to be a Help -> Give Feedback menu option on my MacOS version of the application.