OpenAI's ChatGPT desktop app for macOS now integrates with several coding applications, enhancing its utility for developers. This new feature allows ChatGPT to read code directly from apps like VS Code, Xcode, TextEdit, Terminal, and iTerm2, eliminating the need for manual copy-pasting.
Key Features
- Integration with Coding Apps: ChatGPT can read and include code from open editor panes or terminal windows in its responses.
- Automatic Context Inclusion: When enabled, ChatGPT automatically sends the section of code you’re working on as context along with your prompt.
- Beta Availability: Currently available for ChatGPT Plus and Team users, with Enterprise and Edu users gaining access soon.
How to Use
- Enable the Feature: Ensure the compatible app is running, then click the "Work With Apps" button in the ChatGPT chat bar and select the app.
- Content Inclusion: A banner will indicate which apps are being used. ChatGPT includes the full content of open editor panes or the last 200 lines of terminal panes, focusing on selected text if applicable.
- Data Management: Chat history is saved and can be managed or deleted as needed. Data controls are available for privacy and security.
Managing Compatibility
- Accessibility API: Most apps require enabling the macOS Accessibility API.
- VS Code Extension: Requires installing a specific extension to query content.
- Manage Apps: Check compatible apps and required settings via Settings > Work with Apps > Manage Apps.
Disabling the Feature
- Disable Functionality: Turn off the "Enable Work with Apps" switch in ChatGPT settings to fully disable the feature.
Data Usage
- Model Training: Content from app interactions may be used to improve model performance unless opted out.
- Privacy Controls: Users can control data storage and usage, including toggling settings for model improvement and enabling Temporary Chat to prevent data saving.
This integration aims to provide developers with smarter, more accurate answers tailored to their coding context, streamlining their workflow.