A pure bash script to install VS Code extensions directly to Cursor IDE.
- Zero dependencies - Pure bash, only requires
curl,gunzip, andcursor - Fast installation - Downloads and installs extensions from VS Code marketplace
- Auto-decompression - Handles gzipped VSIX files automatically
- Simple CLI - Easy-to-use command interface
- Zsh autocomplete - Full autocomplete support for zsh users
Install directly from GitHub with a single command:
curl -fsSL https://raw.githubusercontent.com/JackMBurch/cursor-vscode-ext/main/remote-install.sh | bashThis will:
- Download
cursor-vscode-extto~/.local/bin - Make it executable
- Add it to your PATH (both bash and zsh)
- Set up zsh autocomplete (if zsh is available)
After installation, reload your shell:
source ~/.zshrc # or ~/.bashrcIf you prefer to install manually:
-
Clone the repository:
cd ~/repos git clone https://github.com/JackMBurch/cursor-vscode-ext.git cd cursor-vscode-ext
-
Run the install script:
./install.sh
-
Reload your shell:
source ~/.zshrc # or ~/.bashrc
To uninstall cursor-vscode-ext:
-
Run the uninstall script:
curl -fsSL https://raw.githubusercontent.com/JackMBurch/cursor-vscode-ext/main/uninstall.sh | bashOr if you have the repository cloned locally:
cd ~/repos/cursor-vscode-ext ./uninstall.sh
-
Reload your shell:
source ~/.zshrc # or ~/.bashrc
The uninstall script will:
- Remove the
cursor-vscode-extscript file - Remove PATH entries from your shell configuration files
- Remove zsh autocomplete files and configuration
- Clean up empty directories
Install from VS Code marketplace (default):
cursor-vscode-ext install <publisher.extension-name>Install from Cursor marketplace:
cursor-vscode-ext install --cursor <publisher.extension-name>Examples:
# Install from VS Code marketplace
cursor-vscode-ext install vv13.markdown-auto-preview
cursor-vscode-ext install ozaki.markdown-github-dark
cursor-vscode-ext install bierner.markdown-emoji
cursor-vscode-ext install AykutSarac.jsoncrack-vscode
# Install from Cursor marketplace
cursor-vscode-ext install --cursor some.cursor-extensioncursor-vscode-ext uninstall <publisher.extension-name>Examples:
cursor-vscode-ext uninstall vv13.markdown-auto-preview
cursor-vscode-ext uninstall ozaki.markdown-github-dark
cursor-vscode-ext uninstall bierner.markdown-emojicursor-vscode-ext --helpcursor-vscode-ext --version- Parses the extension ID (format:
publisher.extension-name) - Downloads the VSIX file from VS Code marketplace API
- Decompresses if the file is gzipped
- Installs using
cursor --install-extension - Cleans up temporary files
- Cursor IDE - Must be installed and
cursorcommand available in PATH - curl - For downloading extensions
- gunzip - For decompressing gzipped VSIX files
- bash - Shell interpreter
Extensions must be specified in the format: publisher.extension-name
You can find the extension ID on the VS Code marketplace page URL:
- URL:
https://marketplace.visualstudio.com/items?itemName=publisher.extension-name - Extension ID:
publisher.extension-name
If cursor-vscode-ext is not found after installation:
- Make sure you've reloaded your shell:
source ~/.zshrc - Check if the script directory is in PATH:
echo $PATH | grep cursor-vscode-ext - Verify the install script ran successfully
Make sure Cursor is installed and the cursor command is available:
which cursorIf not found, you may need to:
- Install Cursor command line tools
- Add Cursor to your PATH manually
- Check your internet connection
- Verify the extension ID is correct
- Ensure you have write permissions in the temp directory
- Check that Cursor is running and accessible
MIT
Contributions welcome! Please feel free to submit a Pull Request.