Seamlessly drag and drop or copy-paste files from VSCode to web browsers.
When you drag a file from VSCode's file explorer to a web browser (like Claude, ChatGPT, Gemini, or Grok), the browser doesn't recognize it as a file drop β it only receives the file path as text. This is because VSCode (an Electron app) sends drag data differently than the native file explorer.
VSCode Drop Bridge consists of two extensions that work together:
| Component | Description |
|---|---|
| VSCode Extension | Runs a local server that provides secure file access |
| Browser Extension | Intercepts drag/drop and copy/paste events to convert them into proper file transfers |
- π±οΈ Drag & Drop β Drag files directly from VSCode to any website
- π Copy & Paste β Copy files in VSCode, paste them into web upload areas
- π Secure β Only serves files from your workspace folders
- β‘ Fast β Local transfers with no cloud dependency
- π AI Chat Support β Works with ChatGPT, Claude, Gemini, and Grok
From Marketplace:
- Open VSCode
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for "VSCode Drop Bridge"
- Click Install
Manual Installation:
cd vscode-extension
npm install
npm run package
# Install the generated .vsix file via "Extensions: Install from VSIX"Chrome Web Store:
- Visit the Chrome Web Store and search for "VSCode Drop Bridge"
- Click Add to Chrome
Manual Installation (Developer Mode):
- Go to
chrome://extensions(oredge://extensions) - Enable Developer mode
- Click Load unpacked
- Select the
browser-extensionfolder
- Make sure VSCode is open (the extension starts automatically)
- Drag a file from VSCode's file explorer
- Drop it on any website's file upload area
- The drop zone will highlight and accept the file
- Select a file in VSCode's file explorer
- Copy it (
Ctrl+C/Cmd+C) - Go to a website with a file upload area
- Paste (
Ctrl+V/Cmd+V) - The file will be uploaded
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β VSCode β β Local Server β β Browser β
β Extension ββββββΆβ (port 48369) βββββββ Extension β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β β β
β Monitors clipboard β Serves file content β Intercepts drags
β for file copies β via HTTP β and pastes
ββββββββββββββββββββββββββ΄βββββββββββββββββββββββββ
- When VSCode opens, the extension starts a local HTTP server on port 48369
- When you drag a file from VSCode, the browser extension detects the file path
- The browser extension fetches the file content from the local server
- The browser extension creates a proper File object and dispatches it to the website
Click the extension icon in your browser to:
- Enable/disable the extension
- Toggle debug mode for console logging
- Check server connection status
Go to the extension options to:
- Add domains to blacklist (disable on specific sites)
- Add domains to whitelist (only enable on specific sites)
| Feature | Description |
|---|---|
| Localhost Only | The server only accepts connections from 127.0.0.1 |
| Workspace Restriction | Files must be within your VSCode workspace folders |
| Session Limited | Server only runs when VSCode is open |
| Size Limit | Maximum file size of 50MB |
| Clipboard Expiry | Copied file references expire after 30 seconds |
- Make sure VSCode is open
- Verify the VSCode Drop Bridge extension is installed and enabled
- Check if another application is using port 48369
- Enable debug mode in the browser extension popup
- Check the browser console (F12) for error messages
- Ensure the file is within your VSCode workspace
- Some websites use custom drop zone implementations
- Try the copy-paste method as an alternative
VSCode Drop Bridge currently supports the following AI assistant websites:
- ChatGPT (chat.openai.com)
- Claude (claude.ai)
- Gemini (gemini.google.com)
- Grok (grok.com)
More websites may be added in future updates.
- Node.js 18.x or higher
- VSCode 1.74.0 or higher
- Chrome or Edge browser
cd vscode-extension
npm install
npm run compileLoad the browser-extension folder as an unpacked extension in Chrome/Edge.
npm install sharp
node scripts/generate-icons.jsContributions are welcome!
MIT Β© VSCode Drop Bridge
Built with β€οΈ for developers who drag files
