This is a simple extension that may or may not be covered in things like GitLens. The one function it has is to open the currently shown file in the online repository. It is a task I would frequently do via other extensions (git blame, for example) but through several clicks. Sometimes I just wanted a quick way to get to the file online to see if certain code was in a certain branch. Also, it is an excuse to play around with VS Code Extensions.
To install:
- Download the VSIX.
- Click on the Extensions options in VS Code.
- Click the triple dots at the top and select 'Install from VSIX...'.
- Select the downloaded file.
Adds the command 'View in Repo' which will open the current file in the online repo. It looks for the URL and branch info in your .git/config file and combines it with the path information in your open tab. No credentials are looked up, it just sends the URL to the default handler for URLs and lets the browser handle permissions.
It just uses built in fs/path imports. Trying to keep it simple.
Keeping it simple, nothing to configure.
Only supports GitHub. Azure Repo won't take much to add.
Unix/Windows GitHub Proof-of-Concept.
Unix/Windows GitHub Proof-of-Concept.