Share via

Wrap text in codeblock

Nikoloz Devdariani 0 Reputation points
2026-05-22T19:07:08.19+00:00

Hello,
I have Microsoft Teams Desktop version 26106.1911.4707.3286

In the new Code Block compose UI, the More options (...) menu only shows "Make this collaborative". The "Display option > Wrap text" option is missing.

Same user/tenant in Teams Web shows the Wrap text option correctly.
User's image

Microsoft Teams | Microsoft Teams for business | Chats | Group chats
0 comments No comments

Answer accepted by question author

Ryan-N 13,325 Reputation points Microsoft External Staff Moderator
2026-05-22T20:23:38.4466667+00:00

Hi @Nikoloz Devdariani,

Welcome to the Microsoft Q&A forum.Thank you for sharing.

Based on my testing environment, the Wrap Text option does not appear within the code block.

In this case, I recommend that you create a ticket with the Technical Support team so they can perform a deeper investigation into the issue.

To create a support ticket with Microsoft Technical Support, you can refer to the documentation below:

 Get support - Microsoft 365 admin | Microsoft Learn

Additionally, I would like to suggest a temporary workaround that you can try while waiting for assistance from a Microsoft engineer:

Step 1: Click on Make this collaborative

Step 2: Under Display options, turn off and then turn on Line wrap

User's image

After that, long lines will automatically wrap.

User's image

In addition, this feature allows real-time editing. If you need to add or update anything in the code block, you can edit it directly there.

User's image

Furthermore, you can also configure permissions at the same location to restrict who is allowed to edit this code block.

 User's image

 

I hope this information is helpful

If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.

I look forward to continuing the conversation.


If the answer is helpful, please click "Accept Answer" and kindly upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.