Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-copy-github-permalinkNew to Visual Studio Code? Get it now.
vscode-copy-github-permalink

vscode-copy-github-permalink

hogashi

|
8,927 installs
| (5) | Free
Copies GitHub permalink of active file (name and line) to clipboard on VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-copy-github-permalink

Copies a GitHub or GitLab permalink of the active file (name and line) to clipboard in VSCode. Works with both cloud-hosted (github.com, gitlab.com) and self-hosted repositories.

https://marketplace.visualstudio.com/items?itemName=hogashi.vscode-copy-github-permalink

Usage

  • Open command pallete (with Cmd-Shift-P or so)
  • Input to search Copy GitHub Permalink and select it
  • Then your clipboard has a permalink generated by your workspace's git info and active file (name / line number)

Features

  • Copy GitHub Permalink command copies a permalink generated by your workspace's git info and active file (name / line number)
    • Works with GitHub (github.com and self-hosted GitHub Enterprise) and GitLab (gitlab.com and self-hosted GitLab instances)
    • e.g. https://github.com/hogashi/vscode-copy-github-permalink/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4
  • Multiple-lined permalink will be copied if multiple lines are selected
    • e.g. https://github.com/hogashi/vscode-copy-github-permalink/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4-L6
  • ?plain=1 will be added if Markdown (and other rich docs that will be rendered in web)
    • e.g. https://github.com/hogashi/vscode-copy-github-permalink/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/README.md?plain=1#L4

Requirements

  • Workspace is with git
  • File is opened

Extension Settings

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