mpociot/chatgpt-vscode
FreeVSCode extension.
About mpociot/chatgpt-vscode
The ChatGPT extension for VSCode is an open-source tool that integrates OpenAI's ChatGPT directly into the Visual Studio Code editor. It allows developers to ask general questions or use code snippets from the editor to query ChatGPT via an input box in the sidebar. Users can right-click on a code selection and run context menu shortcuts to get AI-generated responses, which appear in a panel next to the editor. The extension maintains conversation context, enabling follow-up questions, and allows users to insert code snippets from the AI's response into the active editor by clicking on them. It requires a ChatGPT session token for authentication and is available for free from the VSCode marketplace or as a .vsix file from the GitHub releases.
Key Features
Pros & Cons
- Free and open-source, allowing community contributions and transparency
- Integrates ChatGPT directly into VSCode, reducing context switching
- Maintains conversation context for follow-up questions
- Allows insertion of AI-generated code snippets into the active editor
- Supports both general questions and code-specific queries via context menu
- Requires manual setup of a ChatGPT session token, which may be non-trivial for some users
- Depends on the unofficial ChatGPT API, which may have availability or rate limits
- Free tier of ChatGPT may have usage limits that affect extension functionality
- Output quality depends on the underlying ChatGPT model and prompt clarity
- Requires internet access to communicate with the ChatGPT API