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

hogashi

|
316 installs
| (1) | 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 GitHub permalink of active file (name and line) to clipboard on VSCode.

Features

  • Open command pallete (with Cmd-Shift-P or so)
  • Input to search copy-github-permalink: Copy GitHub permalink to clipboard 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/sketch-20200411-vscode-ext-git/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4
    • Multiple-lined permalink will be copied if multiple lines are selected: https://github.com/hogashi/sketch-20200411-vscode-ext-git/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4-L6

Requirements

  • Workspace is with git
  • File is opened

Extension Settings

  • Nothing

Known Issues

  • There might be some because this is just a sketch repo.

Release Notes

0.0.7

  • Fix git-remote url parsing
    • Use normalize-git-url

0.0.6

  • Add tests for https-url maker function

0.0.5

  • Fix git-remote url parsing
  • Use blob when file path is in utl

0.0.4

  • Fix url at repo has submodules

0.0.3

  • Use simple message

0.0.2

  • Merge CHANGELOG into README

0.0.1

  • Initial release

Licence

MIT

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2021 Microsoft