VSCode Chat is a VSCode extension that leverages LangChain and OpenAI's GPT API to allow you to ask questions about your files inside of VSCode.
Ask natural language questions about your files within the VSCode editor.
Get relevant answers about your files instantly, without having to leave the editor.
First you will need to add your OpenAI API key to the extension settings. You can open your settings by pressing Ctrl + ,. Then, search for "VSCode Chat" and add your API key to the "OpenAI API Key" field.
Now that the setup is complete, you can ask questions about your files by following these steps:
Open the file you want to ask questions about.
Press Ctrl + Shift + P to open the VSCode command palette.
Type VSCode Chat: Ask a question and press enter.
A chat window will appear in the right panel of VSCode.
Type your question in natural language and press enter.
Wait for the extension to generate an answer.
The answer will be displayed in the chat window.
This extension contributes the following settings:
vscode-chat.OPENAI_KEY: OpenAI API Key
It's ugly, I know it, you know it, we all know it. :( I'm working on it.
This is using the paid version of OpenAI's API, so it's not free, i.e., it is bring your own credits.
It's using a Large Language Model, so the responses it generates might be completely wrong, something called "hallucinations".
Here are the release notes for the extension.
Initial release of VSCode Chat with basic functionality. Namely, you can ask questions about your currently open file and get an answer.
Here are some features I plan to add in the future:
[ ] Add a "Refresh" button to the chat window to refresh the content that you can ask questions about.
[ ] Add a "Clear" button to the chat window to clear the chat history.
[ ] Add ability to ask questions about multiple files at once.