1.8K

codesnippets.ai

Code Snippets AI is an AI powered Snippets library for teams and individuals.

Code Snippets AI

VSCode Extension

Chat with the latest AI models in VSCode

Build your code snippets library

Discord ยท Pricing ยท Twitter


Features

  • ๐Ÿ™‹ Ask general questions or use code snippets from the editor to query the AI
  • ๐Ÿ”ฌ View AI responses in the sleek side panel
  • ๐Ÿ‘€ See the responses as they are being generated
  • ๐Ÿ“ Insert code from the AI's response into the active editor
  • ๐Ÿ’พ Save and fetch your team's code snippets from your online library

Use the latest AI Models

Code faster with GPT-4, ChatGPT & Google PaLM2.

Our OpenAI services are delivered by Microsoft Azure. Allowing for increased speed compared to the standard OpenAI API


Usage

  1. Open a file in Visual Studio Code and click on the CodeSnippets icon in the sidebar.
    • This will open the side panel with an input field.
  2. Enter your prompt or question.
  3. Click Enter.
    • The prompt will be sent to the AI.
    • The response will be displayed below the input field in the sidebar.

Add context to your request with selected code

Select some code in the editor, right click on it and choose one of the following commands from the context menu:

Ask anything ๐Ÿ’ญ

Opens the custom command window for you to insert your own prompt. (You can also press Ctrl + Shift + A). With or without selected code for added context.

Refactor code ๐Ÿ”ง

Refactors the selected code.

Explain ๐Ÿ’

Explains what the selected code does.

Add tests ๐Ÿงช

Creates tests for the selected code.

Find bugs ๐Ÿ”Ž

Looks for problems/errors in the selected code, fixes and explains them.

Optimize ๐ŸŽ๏ธ๐Ÿ’จ

Make the selected code more concise and easier to read.

Add comments ๐Ÿ“–

Generate comments for the selected code.

Save Code Snippets ๐Ÿ’พ

Saves your code snippet to your online library for your whole team to access.

Example Usage

Refactoring selected code


Installation

To use this extension, install it from the VSCode marketplace.

Get your API key ๐Ÿ”‘

To use this extension, you will need an API key from your dashboard.

To get one, follow these steps:

  1. Go to codesnippets.ai
  2. If you don't have an account, you will need to create one or sign up.
  3. Sign up to one of our plans.
  4. Copy the API key from the dashboard and paste it into the Access Token field in the extension settings.
  5. After completing these steps, the extension should be ready to use.

Full platform overview

IMAGE ALT TEXT HERE


FAQ

Answers to our most popular questions can be found here: FAQ

GPT-4 is only available on our Pro plan.

ChatGPT & Google PaLM2 is used for all other plans.


Socials

Instagram or Twitter