Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code_ShareNew to Visual Studio Code? Get it now.
Code_Share

Code_Share

Mohit Manjusha Mahendra Deore

|
8 installs
| (1) | Free
Instantly and securely share or retrieve code snippets across machines via a 4-digit PIN using AES-256 encryption.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Online Clipboard (VS Code Extension)

Right click selected text in the editor and share it to online-clipboard.tech.


Activity Bar Icon

The extension adds a dedicated icon to the VS Code Activity Bar (the vertical sidebar on the left). Click it to open the CodeShare sidebar panel.

Activity Bar Icon


Sidebar Panel — Retrieve & Share

The main sidebar panel provides two core features:

  • Retrieve Code — Enter a 4-digit code to instantly fetch a shared snippet.
  • Share Selection — Select code in the editor and click Share Selected Code to upload it to the web. You can also use the keyboard shortcut ⌥⌘C.

Sidebar Panel


Extension Settings

Click the gear icon in the sidebar header to access the Extension Settings panel. Configure:

  • Appearance — Choose an accent color from 10 vibrant color options to personalize the UI.
  • Share Options — Toggle Auto Format, Trim Whitespace, Cleanup Newlines, and Convert Tabs to Spaces before sharing.
  • Behaviour — Enable Disable Preview Panel to show a compact notification toast instead of the full-screen preview.

Extension Settings


Share Success — Preview Panel

After sharing, a full Preview Panel opens as an editor tab showing:

  • The generated 4-digit share code displayed prominently.
  • Copy code button to copy the code to your clipboard.
  • Open button to view the snippet on online-clipboard.tech.
  • A direct link to the shared snippet.
  • A code preview of the shared content.

Share Success Preview Panel


Share Success — Notification Toast

When the Disable Preview Panel setting is enabled, a compact notification toast appears instead of the full preview panel. It shows:

  • The share code (e.g., 6211).
  • Copy Code and Open in Browser action buttons right in the notification.

Notification Toast


Keyboard Shortcuts

Action Mac Windows / Linux
Share selected code Cmd + Option + C Ctrl + Alt + C
Retrieve a snippet Cmd + Option + V Ctrl + Alt + V

How to Use

  1. Share code — Select any text in the editor, then:

    • Press Cmd + Option + C (Mac) or Ctrl + Alt + C (Windows/Linux), or
    • Right-click and select Code_Share: Share Code from the context menu, or
    • Open the Command Palette (Cmd + Shift + P / Ctrl + Shift + P) and run Code_Share: Share Code
  2. Retrieve code — Press Cmd + Option + V (Mac) or Ctrl + Alt + V (Windows/Linux), or enter the 4-digit code in the sidebar panel.

  3. Open the sidebar — Click the CodeShare icon in the Activity Bar, or run Code_Share: Focus Sidebar from the Command Palette.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft