Skip to content

This repo hosts source file for share-git-url VS Code extension

License

Notifications You must be signed in to change notification settings

liang2zhu1/share-git-url

Repository files navigation

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.useCurrentBranch: enable to use current git branch than default (master) branch, default disabled.
  • 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).


About

This repo hosts source file for share-git-url VS Code extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published