Skip to content

GobinathAL/vscode-extension-importer

Repository files navigation

VSCode Extension Importer

Author: gobinathal

Import specific VS Code extensions into Cursor — no need to import everything. Also download extensions directly from the VS Code Marketplace and import them into Cursor in one step.


Quick pitch

Cursor's built-in import is all-or-nothing. This extension fixes that: pick the exact extensions you want from your local VS Code install, or fetch any Marketplace extension and import it straight into ~/.cursor/extensions/.


Features

  • Import specific local VS Code extensions (reads ~/.vscode/extensions/extensions.json).
  • Download and import extensions from the VS Code Marketplace.
  • Automatically copy extension folder into ~/.cursor/extensions/ and upsert the extension JSON block into ~/.cursor/extensions/extensions.json.
  • Simple, in-UI workflow (no manual .vsix juggling).

Installation

From Open VSX Registry (Recommended)

  1. Install from Open VSX: search VSCode Extension Importer (publisher: gobinathal).
  2. Or use the command line:
    code --install-extension gobinathal.vscode-extension-importer

From VSIX File

  1. Download the latest .vsix from the releases page
  2. Install using VS Code/Cursor:
    code --install-extension vscode-extension-importer-0.1.0.vsix

Building from Source

  1. Clone the repository:

    git clone https://github.com/gobinathal/vscode-extension-importer.git
    cd vscode-extension-importer
    npm install
  2. Package for OpenVSX:

    npm run package
  3. Install the generated .vsix:

    code --install-extension vscode-extension-importer-0.1.0.vsix

Usage

Open the Command Palette and run: VSCode Extension Importer: Import VSCode Extension

Choose Local to pick an already installed extension from your machine.

Choose VSCode Marketplace to search for an extension (enter publisher.name like ms-python.python), pick a version, download, and import.

After import the extension folder will live at:

~/.cursor/extensions/<extension-folder>/

and ~/.cursor/extensions/extensions.json will be updated.

Example

To import GitLens:

Command Palette → VSCode Extension Importer: Import VSCode ExtensionMarketplace → search eamodio.gitlens → choose version → import.


Development

Prerequisites

  • Node.js 16+
  • npm or yarn

Setup

npm install

Available Scripts

  • npm run package - Create VSIX package using VSCE
  • npm run publish:openvsx - Package and publish to OpenVSX registry
  • npm run publish:openvsx:dry - Dry run package and publish to OpenVSX registry

Publishing to OpenVSX

  1. Set your OpenVSX token:

    export OPENVSX_TOKEN="your-token-here"
  2. Package and publish (OVSX will package automatically):

    npm run publish:openvsx
  3. Or do a dry run first:

    npm run publish:openvsx:dry

Notes & Troubleshooting

  • Make sure Cursor and VS Code paths match your system. The extension uses ~/.vscode/extensions/extensions.json for local imports.
  • Marketplace downloads use the public Visual Studio Marketplace API. If a publisher has platform-specific assets, you may need to pick the appropriate version.
  • If you already have an extension with the same id in ~/.cursor/extensions/, you will be prompted to overwrite.

Changelog

See CHANGELOG.md.

License

MIT — see LICENSE.

About

Import specific VS Code extensions into Cursor. Pick extensions from your local VS Code install or download directly from the VS Code Marketplace.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors