CodeGenieSupercharge your coding with CodeGenie - the free development tool that brings ChatGPT straight to your editor. Streamline your workflow with Refactor, Comment Code, Code Review, and Ask a Question commands, all within your CodeGenie panel. Imagine the power of chat.openai.com, but with seamless editor integration. While you're here, consider checking out DataDocs.ai, a service that uses LLMs to generate and maintain database documentation for you. UPDATE (February 10):
Feature Overview
Getting Started0. Install CodeGenieGoes without saying, no? You can do that in the VSCode Extension Marketplace, or in VSCode's extension panel itself. 1. Get an OpenAI API tokenCodeGenie requires a valid OpenAI API token. If you haven't already got an OpenAI account, create one here: OpenAI Platform. Once you've created your account, you need to create an API token for CodeGenie to use. Navigate to the View API Keys page, and then create yourself a new API key. Copy that to the clipboard and hop over to VSCode. In VSCode, Ctrl/Cmd-Shift-P to open the command palette and select 'CodeGenie: Set OpenAI API Key'. You'll be prompted to enter your API key. Once you do, your token is validated and you're good to go. IMPORTANT: Your API key never leaves your computer (except to communicate with OpenAI). It is stored directly in VSCode's secure secret storage . 2. Enjoy!CodeGenie is designed to run in a panel beside your code. To activate CodeGenie and see the commands available, just hit Ctrl/Cmd-Shift-P and type 'CodeGenie,' or right-click in any editor window. You'll see some commands like:
When you select one of those commands, it will open a CodeGenie panel and populate the message area with the code you've selected and the command prompt. Feel free to modify to suit your needs, and then hit enter to send your message off to ChatGPT. FeaturesQuick and easy bi-directional code insertionWhen you're using ChatGPT, you'll often want to provide it some code. With CodeGenie open, you can just highlight your code in an editor and then click the '>' button beside the message input. That will toss your code into the prompt input so that you can ask your question. When ChatGPT responds, CodeGenie parses the response into markdown and syntax-highlighted code blocks. Every code block in the response also include a '<' button. When you click that, the code from the response will be inserted into the editor at your cursor (and will replace any selection). Use GPT 4, GPT 3.5 or any of the longer-context variantsCodeGenie stores your chats on disk (associated with your workspace), and automatically resumes them. You can have multiple chats and easily switch from one to another. Command Palette and Context Menu supportThere are two ways to activate CodeGenie: using the VSCode Command Palette (cmd-shift-p, then type 'CodeGenie'), or using the context menu (right-click) in any editor window. Persistent Chat HistoryCodeGenie stores your chats on disk (associated with your workspace), and automatically resumes them. You can have multiple chats and easily switch from one to another. Relatively Sane (and Configurable!) Default PromptsYou could just manually ask ChatGPT whatever you want using the 'CodeGenie: Ask a Question' command. However, CodeGenie also supplies baked-in prompts for common tasks.
If you find that the default prompts for these commands aren't exactly what you like, hop over to CodeGenie's extension settings to modify them. CONTACTE-mail me: arlen@nsono.net if you have any issues. See CHANGELOG for release notes |