Skip to content

tejanium/vscode-copy-github-permalink

Repository files navigation

VSCode Copy Github Permalink

Build Status David David GitHub release Visual Studio Marketplace Installs

Features

Copy Github's permalink of particular line. This is useful if you want to show piece of code in Github's comment.

There are tons of similar extension, but they always using HEAD's SHA which might or might not exist in Github.

This extension by default will copy permalink to your origin/master because it guarantee the permalink is valid, but you can configure it to point to your current HEAD if you want.

To activate, enter these commands in the Command Palette:

  • copy-github-permalink.copy: Copy permalink of the selected line.

Extension Settings

  • copy-github-permalink.branch: Branch of where the permalink will pointed to. Default: origin/master