Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>origin-linkNew to Visual Studio Code? Get it now.
origin-link

origin-link

vbrazelton

|
92 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Origin-Link Logo

Origin Link

A Visual Studio Code extension that allows users to create a link to the remote origin of a selected line or range of code.

Features

  • Generate a link to the remote origin of a selected line of code.
  • Generate a link to the remote origin of a selected range of code.
  • Works with both SSH and HTTPS git origins.
  • Supports Bitbucket URLs.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the square icon on the sidebar, or press Ctrl+Shift+X.
  3. Search for "Origin Link" and install it.

Usage

  1. Open a file in Visual Studio Code.
  2. Select a line or range of code.
  3. Right-click and choose "Get Origin Link" to copy the link to your clipboard.
  4. You can also choose "Open Origin Link" to open the link in your default web browser.

Configuration

No additional configuration is needed.

Contributing

If you find any issues or have a feature request, please open an issue on the GitHub repository.

Note: Handling various git providers is surprisingly tricky. Please include the following with any issue:

  1. Push and Fetch URLs
    • run git remote show origin in the root of your project
  2. An example of a correct url for your remote repository
    • Needed in order to validate correct output. No access to the remote repository is needed.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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