Hacker News new | ask | show | jobs
by beezlebroxxxxxx 857 days ago
One thing absolutely bizarre with Teams is that if you copy and paste the contents of a message most of the time it will paste the contents as plain text with a weird timestamped wrapper including the senders name. That makes passing a filepath or any text super annoying through Teams, most of all because it's a seemingly random behaviour --- sometimes it does it and sometimes it doesn't.
1 comments

Ah I know of this one and yes it's very annoying. But I can explain the behavior for you, though it won't be any less random-seeming in my experience.

Depending on where you stop your selection with the cursor, Teams will think you either only have text selected, or you've selected the message itself. The latter is what adds the message data to your clipboard, and the border between text and message selection is impossible to tell. On MacOS I can _barely_ see some text highlighting when I grab the message, but it's not always clear.

Edit: additional complaint

Teams is bad with text in general. It inserts so many random new lines and hidden characters for cosmetic purposes only, and unless you've dealt with the issue before, you have no way of knowing why the powershell one-liner you copied from teams has a bunch of ????????? at random places like code blocks.

It also parses certain C++ and Fortran syntax as smileys...
It had (had!) a multi-line code block option. Now it still does, but only in the desktop app, not in the browser.

I'm sure they need some native platform APIs to enable entering multi-line code blocks.

Isn't this the company that makes VSCode as well though? Why not pillage some of that code for ... code in messages?
Keep your bloated webtech code editor out of my bloated webtech chat client!
I'd say VSCode is one of the best optimized/built Electron apps out there. The team cares a lot about performance and weird edge cases.

I vastly prefer using Vscode if I need some IDE-esque features over something like IntelliJ these days, even if the latter is more "powerful" in terms of features.