Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Easy url for git filesNew to Visual Studio Code? Get it now.
Easy url for git files

Easy url for git files

Liang Zhu

|
4,154 installs
| (1) | Free
This extention makes it easy to share web access url for Git files (full for Azure Repos and partial for GitHub) through browser or clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

This extension provides ability to easily get sharable URLs for git files

  • Copy (or open) url of active Editor document
  • Copy a markdown version of active Editor document (for sharing with eg Teams)
  • Copy url for selected text in active Editor document
  • Copy (or open) url of selected file/directory in File Explorer
  • Copy (or open) url of selected tab in Editor

feature-demo

Requirements

You must not disable built-in Git extension (which is enabled by default) or you will get following prompt require-git-extension

Extension Settings

This extension contributes the following settings:

  • shareGitFile.enableMarkdownSupport: enable to show Copy markdown context menu, default enabled.
  • shareGitFile.branchOption: branch to use when copy/open url, default is 'default branch'.
  • shareGitFile.defaultBranchName: default branch name, default 'master'.

Known Issues

  • As of release 0.0.6

    • No testing has been performed on non-Windows platform although it should just work (Please report if you find it broken!)
    • Git provider only supports Azure Repos only, but GitHub works as well with auto redirection (except for selection it defaults to file)
  • Copy markdown

    • While Microsoft Teams supports markdown, it does not format the pasted text as markdown, workaround may be delete the last char and enter it by keyboard
      • Further more, VS Code does not support copy HTML to clipboard and has no plan to do so until it becomes JS standard, see #77790

Release Notes

0.0.1-0.0.6

Initial release of share git url extension supporting Azure Repos (partially GitHub).


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