Welcome to the README for the "GenAIcode" extension!
Features
The GenAI extension for Visual Studio Code harnesses the power of OpenAI's GPT-3.5 Turbo to assist developers in generating code snippets effortlessly. Write comments in your Python files, and GenAI will transform them into fully-functional code snippets. Take a look at GenAI in action:
Requirements
To use the GenAI extension, you need:
Visual Studio Code installed.
An OpenAI API key. Configure your API key in the extension settings.
Extension Settings
This extension contributes the following settings:
genaicode.apiKey: Set your OpenAI API key here.
Known Issues
No known issues at the moment. Please report any issues you encounter.
Release Notes
1.0.0
Initial release of GenAI Extension.
2.0.0
Made this extension as a Free Open Box, you can use your own Api Key from OpenAi to run this extension
Added Code Summarization Features, you can summarize a code snippet by selecting them in calling this extension.
How to use this extension
Install the Extension in your VS Code
Set your API Key:
Open Visual Studio Code.
Go to the command palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac).
Type "GenAI: Set GenAI API Key" and select the command.
Enter your GenAI API key in the input box and press Enter.
For Code Generation:
Once the API key is successfully set, you can use the main command "GenAI: Generate Code with GenAI" to generate code using GenAI.
For Code Summarization:
Select a code snippet that you want to summarize. Then you can use the main command GenAI: Generate Code with GenAI to call the extension, which has pre-prompted to summarize this block of code snippet. Press Enter to get your summarized code.
Following Extension Guidelines
Ensure that you've read through the extension guidelines and follow best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.