![ChatGPT for macOS Now Edits Xcode, IDE Code Directly [Video] ChatGPT for macOS Now Edits Xcode, IDE Code Directly [Video]](/images/news/96653/461735/461735-64.png)
ChatGPT for macOS Now Edits Xcode, IDE Code Directly [Video]
Posted March 6, 2025 at 9:00pm by
Shalom Levytam
OpenAI has just rolled out a significant update to its ChatGPT for Mac app that enables direct code editing within integrated development environments (IDEs) like Xcode. For the many coders already using ChatGPT as a companion tool, this could significantly streamline workflows on macOS.
John, an engineer on the ChatGPT Desktop Team, demonstrated this with a sample SwiftUI project displaying a solar system view. Using the Option + Space shortcut, he summoned ChatGPT, which automatically synced with Xcode as the active editor. He then tasked it with adding a star field overlay to the background, leveraging GPT-4.5, OpenAI's latest and most advanced model. While slower than lighter models like o3-mini, GPT-4.5 does well at creative coding tasks. ChatGPT generated a plan, wrote the code, and produced a diff for review. After approving the changes, John applied them, and the edits landed directly in Xcode, instantly updating the SwiftUI preview with a new star field.
Notably, the app adapts to the active editor, switching context between tools like Xcode and VS Code. In the demo, John shifted to VS Code to tweak a local HTTP server powering the project, asking ChatGPT to add realistic planet colors. With an auto-apply toggle enabled, the changes skipped manual review and wrote straight to the file, though diffs remain available for inspection or reversion. Back in Xcode, the updated colors appeared in the solar system view, showcasing how ChatGPT maintains context across editors.
The ability to edit Xcode projects directly, combined with features like Command + Z to undo changes, integrates ChatGPT more deeply into the macOS coding ecosystem. This update could make ChatGPT an even more essential tool for Mac developers.
You can download ChatGPT for macOS here. The ability to edit code directly in IDEs is available to Plus, Pro, and Team users.
Check out the full demo in the video below...
John, an engineer on the ChatGPT Desktop Team, demonstrated this with a sample SwiftUI project displaying a solar system view. Using the Option + Space shortcut, he summoned ChatGPT, which automatically synced with Xcode as the active editor. He then tasked it with adding a star field overlay to the background, leveraging GPT-4.5, OpenAI's latest and most advanced model. While slower than lighter models like o3-mini, GPT-4.5 does well at creative coding tasks. ChatGPT generated a plan, wrote the code, and produced a diff for review. After approving the changes, John applied them, and the edits landed directly in Xcode, instantly updating the SwiftUI preview with a new star field.
Notably, the app adapts to the active editor, switching context between tools like Xcode and VS Code. In the demo, John shifted to VS Code to tweak a local HTTP server powering the project, asking ChatGPT to add realistic planet colors. With an auto-apply toggle enabled, the changes skipped manual review and wrote straight to the file, though diffs remain available for inspection or reversion. Back in Xcode, the updated colors appeared in the solar system view, showcasing how ChatGPT maintains context across editors.
The ability to edit Xcode projects directly, combined with features like Command + Z to undo changes, integrates ChatGPT more deeply into the macOS coding ecosystem. This update could make ChatGPT an even more essential tool for Mac developers.
You can download ChatGPT for macOS here. The ability to edit code directly in IDEs is available to Plus, Pro, and Team users.
Check out the full demo in the video below...
ChatGPT for macOS can now edit code directly in IDEs. Available to Plus, Pro, and Team users. pic.twitter.com/WPB2RMP0tj
— OpenAI Developers (@OpenAIDevs) March 6, 2025
![iPhone 17 Propels Apple to Top Spot in China as Shipments Surge 28% [Report] iPhone 17 Propels Apple to Top Spot in China as Shipments Surge 28% [Report]](/images/news/99682/99682/99682-160.jpg)

![Flash Memory Prices Set to Jump Up to 70% as AI Servers Drain Supply [Report] Flash Memory Prices Set to Jump Up to 70% as AI Servers Drain Supply [Report]](/images/news/99677/99677/99677-160.jpg)
![New Renders Allegedly Reveal iPhone 18 Pro Design With Corner Camera Cutout [Video] New Renders Allegedly Reveal iPhone 18 Pro Design With Corner Camera Cutout [Video]](/images/news/99672/99672/99672-160.jpg)
![Apple Shares Official Trailer for Super Bowl LX Halftime Show Starring Bad Bunny [Video] Apple Shares Official Trailer for Super Bowl LX Halftime Show Starring Bad Bunny [Video]](/images/news/99669/99669/99669-160.jpg)





![Beats iPhone 17 Pro Kickstand Case Drops to $20.99, 64% Off [Deal] Beats iPhone 17 Pro Kickstand Case Drops to $20.99, 64% Off [Deal]](/images/news/99680/99680/99680-160.jpg)
![Roku 55-inch 4K Smart TV Drops to $278 With AirPlay and Apple TV App [Deal] Roku 55-inch 4K Smart TV Drops to $278 With AirPlay and Apple TV App [Deal]](/images/news/99674/99674/99674-160.jpg)
![Apple iPhone Air Bumper Drops to All-Time Low Price of $19.59 [Deal] Apple iPhone Air Bumper Drops to All-Time Low Price of $19.59 [Deal]](/images/news/99666/99666/99666-160.jpg)
![DJI Power 1000 V2 With Dual 140W USB-C Ports Drops to $429 [Deal] DJI Power 1000 V2 With Dual 140W USB-C Ports Drops to $429 [Deal]](/images/news/99661/99661/99661-160.jpg)
![Samsung's 32-Inch M9 OLED Monitor Drops to $1,299 [Deal] Samsung's 32-Inch M9 OLED Monitor Drops to $1,299 [Deal]](/images/news/99633/99633/99633-160.jpg)