GitLink (Support GitHub/GitLab/BitBucket/VSTS/DevOps)
Inspired by GitHub extension for Visual Studio, this extension provide the feature that Go To current file's online link in browser and Copy the link in clipboard.
- Go to the online link of current file.
- Copy the online link of current file.
Set default remote source
When your project has multiple git remotes, you need to choose the git remote before the git link is generated. If you don't want to choose it every time, you could set the default remote source:
Workspace Level: add
gitlink.defaultRemote: "<your_default_remote_source_name>" in
.vscode/settings.json under the root of your workspace.
Global Level: toggle the preference of vscode, and add
gitlink.defaultRemote: "<your_default_remote_source_name>" in User Settings.
Please note, you could get the name of your remote sources by the command:
git remote -v:
$ git remote -v
origin firstname.lastname@example.org:qinezh/vscode-gitlink (fetch)
origin email@example.com:qinezh/vscode-gitlink (push)
upstream firstname.lastname@example.org:upstream/vscode-gitlink.git (fetch)
upstream email@example.com:upstream/vscode-gitlink.git (push)
And the sample
settings.json could be like:
- Replace npm package copy-paste with VS Code ClipBoard API
- Add support for azure DevOps urls
- Move context menu into own group
- Reduce extension size
- Fix branch encoding issue
- Fix bugs that highlighting on BitBucket links doesn't work.
- Support multiple remote sources (thanks Junle Li)
- Support GitLab url with company name
- Support HTTP in remote URL
- Support multiple lines section
- Initial release of GitLink