Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI ExtensionNew to Visual Studio Code? Get it now.
AI Extension

AI Extension

Anthony Garland

|
971 installs
| (0) | Free
Tool to help integrate chatgpt like llms into vscode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ai-extension

robot

"ai-extension". Select text and send it to the chatbot.

API key

Put your openai api key in the env var OPENAI_API_KEY or in ~/.llminterface/.secrets.toml.

Commands are

The general usage is to select some text in an editor, then run the command you want.

  1. AI Refactor. Select some code, then run the command, and it will replace and try to fix any errors.
  2. AI Description 2 Code . Select some text, then run the command, and it will try to generate code from the description.
  3. AI Chat. Select some text, then run the command, and it will just call the chatgpt model and output the result.

Goal

  • Less copy and pasting to chatgpt, but getting the same work done.

Future/Development

List 2 code . Given a list of steps. Select the steps, then it will call openai to make code for each step.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft