vscode-open-in-github icon indicating copy to clipboard operation
vscode-open-in-github copied to clipboard

Feature request: inverse operation, start with a GitHub URL which contains hash line number(s), and open the file in VSCode at the designated line / code selection

Open danielweck opened this issue 5 years ago • 0 comments

Hello, great extension, thank you! Very useful for code peer reviews over Slack / instant messaging, to exchange URLs whilst working locally from VSCode. However the inverse functionality would be very useful too.

For example I would like to be able to copy such URL: https://github.com/ziyasal/vscode-open-in-github/blob/c6ffc3a85edb4a90facb20f5f7ac098ca5e8e7af/src/extension.js#L18-L19

https://github.com/ziyasal/vscode-open-in-github/blob/c6ffc3a85edb4a90facb20f5f7ac098ca5e8e7af/src/extension.js#L18-L19

...and to show src/extension.js in VSCode with the code selection line 18-19 (extracted from the URL #L18-L19).

Any thoughts?

danielweck avatar Sep 08 '20 11:09 danielweck