Skip to content

hogashi/vscode-copy-github-permalink

Repository files navigation

vscode-copy-github-permalink

Copies GitHub permalink of active file (name and line) to clipboard on VSCode. https://marketplace.visualstudio.com/items?itemName=hogashi.vscode-copy-github-permalink

Features

  • Open command pallete (with Cmd-Shift-P or so)
  • Input to search Copy GitHub Permalink and select it
  • Then your clipboard has a GitHub permalink generated by your workspace's git info and active file (name / line number)
    • Like this: 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: https://github.com/hogashi/vscode-copy-github-permalink/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4-L6

Requirements

  • Workspace is with git
  • File is opened

Extension Settings

  • Nothing