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

Share Code

Roland Greim

|
19,382 installs
| (9) | Free
Share your Code on GitHub Gist, GitLab or Pastebin.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Supports on Pastebin and Github Gist

  • share code
  • open shared files
  • login with oauth

Supports on GitLab

  • share code
  • open shared files

Please create a Personal Access Tokens by hand

Usability

  • select text for sharing
  • context menus

Usage

Press Ctrl+Shift+P and type in Share Code. Then you can select between Pastebin and GitHub Gist. (anonymous) means you don't have to login to share a file, but you can't edit or remove it later, when you choose this option.

HowTo upload a file to Pastebin:

alt tag

HowTo upload a file to Github Gist:

alt tag

Settings

These settings are set automatically when you start the extension. You can also manually configure your user name and token. Go to File > Preferences > User Settings and add these lines:

{
    "shareCode.pastebin.username": "...",
    "shareCode.pastebin.authtoken": "...",
    "shareCode.github.username": "...",
    "shareCode.github.authtoken": "...",
    "shareCode.gitlab.baseurl": "...",
    "shareCode.gitlab.authtoken": "..."
}

Reset Github token

Sometimes it is necessary to delete a token. Go to this page and delete the token named VSCode Share Code.

Like?

You can support my work :)

paypal

License

GPLv3

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