Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Thank you for reporting this. Based on your description, Copilot is generating the code correctly, but the content appears to be getting opened or rendered in an unexpected format within Edge rather than remaining as a standard code block in the chat window. The thread indicates this behavior started recently and may be related to how the content is being displayed in the browser.
A few quick checks that may help:
- Open Copilot in an InPrivate window and test whether the issue persists.
- Temporarily disable browser extensions, especially those related to accessibility, page translation, or content formatting.
- Make sure Microsoft Edge is fully updated to the latest version.
- Try the same prompt in another browser or in the Copilot web experience to see if the behavior is specific to Edge.
If the issue continues, it may be helpful to capture a screenshot or screen recording showing what happens when the code is generated and submit feedback through Edge or Copilot. This can help provide additional details for further investigation.
Please note that this is a user-to-user support forum. Moderators, contributors including external Microsoft employees cannot directly intervene in Microsoft product features or access back-end systems. Our role is limited to providing technical guidance on reported issues, requests, or ideas.
Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.
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.