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

Viewed 3884

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).

1 Answers

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

The command is: gitlens.copyRemoteFileUrlToClipboard

Related