What is ChatGPT - Genie AI?
With ChatGPT — Genie AI s a Visual Code extension that supports GPT-4, GPT3.5, GPT3, and Codex models. It allows you to generate code, explain code, refactor code, and more. Let’s see how to set it up and explore all its functionalities.
Setting up ChatGPT - Genie AI on VSCode
Under VSCode, go to the “Extensions tab” and search for “ChatGPT — Genie AI”. Once we find it, we click on “install”.
=> You should now see a “ChatGPT — Genie AI” icon on the left-side menu of Visual Studio Code.
Before using the extension, you must “Create new secret key” from the OpenAI API key. Once you get the secret key, copy it and store it.
To update your OpenAI API key in the “ChatGPT - Genie AI” extension :
- Click on “Change API Key”
- In the prompt that appears, enter your API key and press Enter.
Your new API key should now be updated and ready to use in the extension.
Exploring ChatGPT - Genie AI
Here are the top features of “ChatGPT - Genie AI”.
- Genie: Generate Code: You only need to type a comment asking for a specific code.
- Genie: Explain: Explain the selected code. Right-click on a selected block of code, and run the command.
- Genie: Add comments: Add comments for the selected code. Right-click on a selected block of code, and run the command.
- Genie: Add tests: Write tests for you. Right-click on a selected block of code, and run the command.
But that’s not all! There are other things you can do with “ChatGPT - Genie AI”. For more information about this extension, click here.
Recommended Contents
Summary
I hope this article helps you understand the installation and use of ChatGPT - Genie AI extension within Visual Code.
Thank you for reading; please let me know your questions, thoughts, or feedback in the comments section. I appreciate your feedback and encouragement.
Happy Documenting!