×
英语
很抱歉。本文没有你的语言版本。
Send code snippets in a message in Teams

Send code snippets in a message in Teams

To send a code snippet in a chat or channel message, first click Format Expand button below the compose box, then select Code snippet Code snippet button in the format bar. This opens a dialog box, where you can enter your code as well as a title for the snippet. Select the language you want to use, and choose whether you want your text to wrap.

Syntax highlighting and auto-indentation help you to write your code the way you want. When you send your snippet, it’s included in the message as a card, and the recipient can view it inline with the syntax highlighting intact.

If you want to edit your code snippet after you’ve sent it, select More options More options button > Edit on your message, then Edit Edit button again on the snippet card.

扩展你的 Office 技能
了解培训
抢先获得新功能
加入 Office 预览体验计划

此信息是否有帮助?

谢谢您的反馈!

谢谢你的反馈! 可能需要转接到 Office 支持专员。

×