Instantly upload code snippets from Visual Studio Code to PasteDB without leaving your editor.
PasteDB lets you share code, save snippets, and create private or public pastes in seconds.
Features
- 🚀 Upload the current file
- ✂️ Upload only the selected text
- 🔒 Secure API key storage using VS Code Secret Storage
- 🌍 Public and Private visibility
- ⏳ Configurable expiration time
- 📋 Automatically copy the paste URL
- 🔗 Open the paste in your browser after upload
- 📂 Recent Pastes sidebar
- ⚡ Built-in upload progress indicator
- 🎛️ Simple dashboard for managing settings
Getting Started
- Install the extension
Install PasteDB from the VS Code Marketplace.
- Open the Dashboard
Open the Command Palette ("Ctrl+Shift+P") and run:
PasteDB: Open Dashboard
or click the PasteDB icon in the Activity Bar.
- Enter your API Key
Paste your PasteDB API key into the dashboard and click Save Settings.
Your API key is stored securely using VS Code Secret Storage.
Uploading Code
- Upload Current File
Open a file and run:
PasteDB: Upload Current File
- Upload Selected Text
Select some code, then run:
PasteDB: Upload Selected Text
Dashboard
The dashboard lets you configure:
- API Key
- Default Visibility
- Default Expiration
- Copy URL after upload
- Open paste after upload
Recent Pastes
The Activity Bar contains a Recent Pastes list.
You can:
- Open a paste
- Copy its URL
- Remove it from history
Privacy
Your API key is never stored inside your project.
It is securely stored using VS Code Secret Storage.
Requirements
A free PasteDB account and API key are required.
Planned Features
- Guest uploads (no API key)
- Update existing pastes
- Search recent pastes
- Upload images
- More customization options
Feedback
Found a bug or have an idea?
Your feedback helps improve PasteDB.
Release Notes
0.1.0
Initial public release.
Features include:
- Upload current file
- Upload selected text
- Dashboard
- API key management
- Visibility settings
- Expiration settings
- Upload progress
- Recent paste history
- Copy/Open URL options
Made with ❤️ for developers who want to share code quickly by Aditya Sorathiya.