Configure the API key in Visual Studio Code settings:
Open the VS Code settings by going to File > Preferences > Settings or using the shortcut Ctrl + ,.
Search for "Quick GPT" and find the "Quick GPT: Api Key" setting.
Enter your OpenAI API key in the input field.
Save the settings.
Open a code file in Visual Studio Code.
Select the code snippet you want to analyze or find errors in.
Use one of the following commands:
Explain Code: Right-click on the selected code and choose "Explain Code" from the context menu, or use the shortcut Ctrl + Shift + P and search for "Explain Code".
Find Code Errors: Right-click on the selected code and choose "Find Code Errors" from the context menu, or use the shortcut Ctrl + Shift + P and search for "Find Code Errors".
The results will be displayed in the "Quick GPT" output channel. If there are any search results, they will be shown in the output channel. Otherwise, a message will be displayed indicating no results were found.
This extension provides the following settings:
quickGPT.apiKey: The API key for OpenAI. Set this value to authenticate with the OpenAI API.
No known issues at the moment.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please create an issue in the GitHub repository.