ChatGPT: Query (will provide you with a prompt for you to ask a question)
ChatGPT: Can you add tests for this code? (will generate test code based on file/text selection)
ChatGPT: Why is this code broken? (will analyze your code and highlight any logical/syntax - errors)
ChatGPT: Can you explain what this code does?
ChatGPT: Can you refactor this code and explain what\'s changed?
ChatGPT: Update APIKey
ChatGPT: Set language
All content except for resetting the API key and querying is also accessible from the context menu by right-clicking anywhere in the editor.
How to Use
Obtaining API keys
To get the OpenAI API key, you will need to first register for an account on the OpenAI website. Once you have registered, you can log in to your account and find the API keys section on the https://beta.openai.com/account/api-keys page. Here you can generate a new API key or view existing ones.
Ctrl+Shift+P is a common shortcut in Visual Studio Code for opening the command palette. The command palette is a pop-up window that allows you to access various commands in Visual Studio Code. To update the APIKey, you can enter the command ChatGPT: Update APIKey, and then enter your new APIKey.