Skip to content

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 #58

@danielweck

Description

@danielweck

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/tejanium/vscode-copy-github-permalink/blob/71ee415913b78d6a54839457cc3b3cba89eafa35/src/api/git.ts#L3-L5

export class Git {
constructor(private cwd: string) { }

...and to show src/api/git.ts in VSCode with the code selection line 3-5 (extracted from the URL #L3-L5).

Any thoughts?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions