CodeManager is a Visual Studio Code extension that leverages the OpenAI GPT-3.5-turbo model to help you efficiently manage your code. It offers a wide range of features including code generation, documentation generation, code fixes, and more.
- CodeManager can be used with any programming language.
- Fix selected code snippets with ease. ✅
- Generate code based on a custom prompt. 🚀
- Automatically generate documentation for selected code. 📚
- Chat directly with the GPT-3.5-turbo model. 💬
Prerequisites: To use this extension, you'll need an OpenAI API key.
Setting up CodeManager is a breeze. Simply follow these steps:
-
Generate your OpenAI API key from the OpenAI website.
-
Open the extension settings in VS Code and enter your OpenAI API key:
codeManager.openAiKey
: Your OpenAI API key
You can have interactive conversations with the GPT-3.5-turbo model using the chat feature in the sidebar. Simply click on the chat icon to activate it.
You can use the following commands to generate code, documentation, fix code issues, or customize prompts. These commands can be accessed from the command palette or the context menu (right-click).
- Refactorize Code ✨
- Generate Documentation 📚
- Fix Code ✅
- Customize Prompt 🎨
Command Palette:
Context Menu:
The generated code is displayed in a diff page where you can review the changes made by the model. You can update the generated code by clicking on the update button.
-
Clone the repository:
git clone https://github.com/Tostisto/vscode_codemanager.git
-
Install the dependencies:
npm install
-
Build the extension:
npm run build
-
Open the repository in VS Code:
code .
-
Press
F5
to start the extension in debug mode.
-
Install vsce:
npm install -g @vscode/vsce
-
Build the vsix file:
vsce package