PasteDB Official VS Code Extension

Upload, update, and manage your PasteDB pastes directly from VS Code. Get a fast developer-focused workflow with secure API key storage, custom expiration, recent paste history, and more.

Install from Marketplace Open PasteDB

Features


⚡ One-click Upload

Upload current file or selected text.

🔐 Secure API Key

Stored in VS Code Secret Storage.

📋 Copy Link

Automatically copy paste URL.

📚 Recent Pastes

Access previous uploads quickly and update existing pastes directly from the PasteDB sidebar.

⏱ Expiration

Choose default expiry.

🎨 Dashboard

Configure all settings visually.

✏️ Update Pastes

Edit an existing PasteDB paste directly from VS Code, then update its content and metadata without creating a new paste.

⚡ Install PasteDB for VS Code


Install the official PasteDB extension directly from the Visual Studio Code Marketplace.


ext install adityasorathiya.pastedb

View Marketplace

Install from VS Code


🔎 Find it in the Extensions Marketplace

Open Visual Studio Code, click the Extensions tab (or press Ctrl + Shift + X), then simply search for "PasteDB". You'll find the official PasteDB extension published by Aditya Sorathiya. Click Install to start uploading code directly from VS Code.

View on Marketplace

🚀 Get Started in 5 Steps

①

Install Extension

Install PasteDB from the Visual Studio Marketplace or search for PasteDB inside VS Code.

↓
②

Generate API Key

Create a free PasteDB account and generate an API key from your dashboard.

↓
③

Open Dashboard

Open the PasteDB dashboard inside VS Code and paste your API key. Configure visibility, expiration and other settings.

↓
④

Upload Code

Right-click any file or selected text and choose one of the PasteDB upload commands.

↓
⑤

Share Link

Your paste is uploaded instantly. Copy the generated URL or open it directly in your browser.

✏️ Update an Existing Paste

①

Select a Recent Paste

Open the PasteDB sidebar in VS Code and choose the paste you want to update.

↓
②

Click "Update Paste"

Right-click the paste and choose Update Paste. PasteDB opens the existing content in a new editor.

↓
③

Edit the Code

Modify the code directly in the new VS Code editor. Your existing paste content is loaded automatically.

↓
④

Press Ctrl + Shift + U

When you're ready, press Ctrl + Shift + U to start the update process.

↓
⑤

Update Metadata

Configure the paste title, visibility, expiration and other metadata from the update panel.

↓
✓

Update Paste

Click Update and your existing PasteDB paste is updated without creating a new paste.

Frequently Asked Questions


Yes. The extension is completely free to install and use.

Yes. You'll need a free PasteDB account to generate an API key for uploading pastes.

Log in to your PasteDB account and open the Dashboard then go to menu then Generate API Key to generate and manage your API keys.
OR Simply go to the My API Keys Page

Yes. The extension stores your API key using Visual Studio Code's Secret Storage instead of plain text.

Yes. Select any text, right-click and choose PasteDB: Upload Selected Text.

Yes. Open any file and choose PasteDB: Upload Current File.

The extension works with any text file. It automatically detects the current file's language and sends it for syntax highlighting.

No. You cannot make Private pastes from the PasteDB VS Code extension as private pastes are encrypted and for now i am making it simple as possible, I will plan of making encrypted pastes also.

Yes. Choose from multiple expiration options including 10 minutes, 1 hour, 1 day, 1 week, 30 days or Never.

Yes. Recent uploads appear in the PasteDB sidebar for quick access.

Yes. Enable Copy Link After Upload in the dashboard settings.

Check your internet connection, verify your API key, and make sure the PasteDB service is available.

You can contact the developer through the Contact page or the GitHub repository linked in the footer.

Yes. Open a recent paste from the PasteDB sidebar, right-click it, and choose Update Paste.

After selecting Update Paste, the existing paste content opens in a new VS Code editor. Edit the code and press Ctrl + Shift + U to continue.

Yes. After editing the content, you can update metadata such as the title, and expiration before confirming the update.