Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Copy GitHub URL (Remote SSH)New to Visual Studio Code? Get it now.
Copy GitHub URL (Remote SSH)

Copy GitHub URL (Remote SSH)

Cesar Manrique

|
659 installs
| (0) | Free
Copy GitHub URL for current location to clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Commands

Copy GitHub URL

Copy a GitHub URL of your current file location to the clipboard.

Usage: Ctrl+L C

Example: https://github.com/CesarManriqueH/vscode-copy-github-url/blob/example-branch/extension.js#L4

Copy GitHub URL Permanent

Copy a GitHub Permanent URL of your current file location to the clipboard.

Usage: Ctrl+Shift+L C

Example: https://github.com/CesarManriqueH/vscode-copy-github-url/blob/c49dae32/extension.js#L4

Copy GitHub URL Default Branch

Copy a GitHub default branch URL of your current file location to the clipboard.

Usage: Ctrl+Shift+L M

Example: https://github.com/CesarManriqueH/vscode-copy-github-url/blob/master/extension.js#L4

Install

  1. Within Visual Studio Code, open the command palette (Ctrl-Shift-P / Cmd-Shift-P)
  2. Type install extension and search for copy github url
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft