arbs-io / vscode-openai

vscode-openai seamlessly incorporates OpenAI features into VSCode, providing integration with SCM, Code Editor and Chat.
https://marketplace.visualstudio.com/items?itemName=AndrewButson.vscode-openai
MIT License
74 stars 18 forks source link
extension open-source openai productivity vscode

vscode-openai

Visual Studio Marketplace Version .github/workflows/codeql-analysis Visual Studio Marketplace Installs GitHub issues Visual Studio Marketplace Rating

Maintainability Rating Security Rating Reliability Rating Bugs Vulnerabilities

The vscode-openai extension is a powerful and versatile tool designed to integrate OpenAI features seamlessly into the vscode editor. By leveraging this extension, you can obtain instant answers to your questions without the need to switch between multiple applications, allowing you to maintain focus on your coding environment.

This extension provides support for both a sponsored (free) openai instance exclusive to extension users and Bring-Your-Own-Key (BYOK) options for vanilla OpenAI and Azure-OpenAI. The intuitive quick-pick menu system enables rapid configuration of service providers, while also offering the flexibility to customize settings as needed. For detailed guidance on configuring service providers, please refer to the Configuring Service Providers section.

In case you encounter difficulties connecting to your own OpenAI service, the Detecting Issues segment offers troubleshooting tips and insights to help resolve any configuration issues. Experience an enhanced coding experience with the vscode-openai extension – your go-to solution for seamless interaction with OpenAI services.

Setup

The Quick Pick feature of the vscode-openai extension is a convenient and efficient configuration for service providers. With options to choose from sponsored, native, or Azure-OpenAI instances, you can tailor your selection based on your specific needs. This feature not only saves time but also offers step-by-step guidance and customized settings to ensure a smooth setup experience.

Once configured, you can effortlessly utilize OpenAI features within VSCode without any interruptions to your workflow.

Note: To activate the setup, you have two options: either use the command "vscode-openai.configuration.show.quickpick" or access it through the vscode-openai StatusBar located at the bottom left corner of VSCode.

vscode-openai-serviceproviders.png

Conversations

The vscode-openai conversation feature have been meticulously crafted to enhance your coding experience by providing rapid and accurate answers to your programming questions. Whether you require assistance with syntax, debugging, or wish to delve deeper into a specific topic, the extension is readily available to support you. By delivering precise and timely responses, we ensure that you can maintain focus on your work without any disruptions. Download our extension today and discover the convenience of having an intelligent chatbot at your fingertips while coding.

vscode-openai-conversation.png

Persona

The vscode-openai persona conversation feature offers a customized and interactive dialogue with an expert, designed to address your specific programming needs. This powerful functionality enables you to quickly access valuable insights and engage in carefully curated conversations that cater to your unique requirements.

By leveraging the expertise of our AI-driven chatbot, you can efficiently resolve coding challenges, explore new concepts, and receive guidance on best practices – all within the familiar environment of Visual Studio Code. Experience the benefits of having immediate access to a knowledgeable conversation partner, empowering you to enhance your skills and streamline your development process.

vscode-openai-conversation-persona.png

Source Code

When vscode-openai provides code examples you can copy directly into the clipboard or send the results to a new (source code) documents.

vscode-openai-chat2editor.png

Source Control

The vscode-openai extension has a powerful feature that allows it to automatically generate comments by analyzing source code changes. This feature saves developers time and effort by automating the process of writing comments for their code.

When you make changes to your code, the vs code-open extension analyzes those changes and generates comments based on the context of the change. For example, if you add a new function to your code, the extension will create a comment describing what it does and how it works.

This feature is handy for developers working on large projects or needing to make frequent changes to their code. By automating the process of writing comments, developers can focus on writing high-quality code without worrying about documenting every code change.

vscode-openai-scm.png

VSCode Editor

Provides quick access to useful features whilst working with source code and design documents. Each prompts can be customizable and works with any models.

vscode-openai-explain.gif

Custom Source Integration

This new feature for vscode-openai provides a powerful addition allows users to load their own sources to enhance the conversation experience and provide tailored assistance based on the latest standards, library documentation, or specialist subjects.

To activate this feature, you can register or re-register your OpenAI service provider. This will enable you to choose the suitable model for embedding. However, please note that due to rate limiting, this feature is exclusively available for Azure and Native OpenAI services.

vscode-openai-embedding.png

How It Works:

With Custom Source Integration for vscode-openai, users now have an even more powerful tool at their disposal, enabling them to stay informed and up-to-date with the latest standards, libraries, and specialist subjects. This feature not only enhances the overall user experience but also empowers developers, researchers, and educators alike to excel in their respective fields.

Detecting Issues

vscode-openai-vscode-codicons-cloud.png Not Found

vscode-openai-vscode-codicons-lock.png Authentication Issue

vscode-openai-vscode-codicons-server-environment.png Unknown Host

Logging

If you're having issue with the extension use the trace log to check for more information.

vscode-openai-output.png

Configuring Service Providers

To configure your azure openai instance, you need to enter the following configuration:

vscode-openai-configuration.png

FAQ

How You Can Contribute

We're excited to announce that our project is now open source! We welcome contributions from the software engineering community. If you're interested in getting involved, please don't hesitate to reach out. Here are a few areas where your expertise could be invaluable:

We look forward to your contributions and to working together to improve and expand this project.

Copyright

Copyright © 2024 Andrew Butson

Licensed under the MIT License