Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Drag ItNew to Visual Studio Code? Get it now.
Drag It

Drag It

sewon is amazing

|
317 installs
| (5) | Free
Generate code using OpenAI Codex
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Drag-It

This is a Visual Studio Code extension that helps you generate code using OpenAI's GPT-3 technology. It automatically generates code based on the file type you're currently editing, allowing you to quickly and easily generate code that fits your needs.

Features

  • Generates code based on the file type you're currently editing

  • Allows you to quickly and easily generate code by selecting the text you want to use as the basis for the code and then executing the extension

  • Automatically prompts you to enter your OpenAI API key if you haven't already done so

Usage

Get your API key

This will differ depending on the provider you choose:

Go to the API Keys page on OpenAI.

Log in with your OpenAI account (or create a new account)

Click the button labeled Create a new secret key

A new dialog window will appear, containing a text box with your API key.

Copy this API Key to your clipboard.

To use Drag-It, simply select the text you want to use as the basis for the code you want to generate, and then execute the extension. You can do this by typing the command drag-it.generateCode in the Command Palette, or by using the keybindings ctrl+space ctrl+enter (Windows/Linux) or cmd+space cmd+enter (Mac).

If you haven't already entered your OpenAI API key, the extension will prompt you to do so when you execute it for the first time. Simply enter your API key and the extension will start working immediately.

Happy coding!

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