visual-studio-code

How can I copy the repository URL for a line of code in Visual Studio Code?


I want to click a hotkey and copy the URL for the repo version of the particular line of code I am on to my clipboard (so I can share it with people).


Solution

  • The extension Gitlens by Eric Amodio gives the Copy Remote URL option in the context menu.

    The command is: gitlens.copyRemoteFileUrlToClipboard