Code Blocks in ChatGPT got more interactive. Write, edit, and preview your code, all in one place: • Create and preview diagrams and mini apps in chat • Review code in split-screen views • Make changes in full-screen view We’d love to see what you’ll build. https://t.co/Spe0HjvQgJ
ChatGPT Gets Interactive Code Blocks for In-Chat Preview and Editing
OpenAI· Updated
ChatGPT's code blocks now let you preview and run HTML, diagrams, and mini apps directly in chat without copying to external tools. Edit in split-screen, run full-screen, and debug inline - the write-copy-run loop is now write-preview.
This eliminates the copy-to-CodePen friction that's been part of ChatGPT-assisted coding since day one. You'd generate code, paste it somewhere to test, spot the issue, come back and describe it. Now the feedback loop closes inside the chat window.
The feature is available in ChatGPT now. Ask ChatGPT to build something - a game, a flowchart, a small UI component - and use the preview button that appears on the code block to run it instantly.
Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →

