Supports : GitHub, Bitbucket, Visualstudio.com and GitLab
Extension for Visual Studio Code which can be used to jump to a source code line in Github, Bitbucket, Visualstudio.com and GitLab
Tested with VsCode 0.10.1
Press F1 and narrow down the list commands by typing extension
. Pick Extensions: Install Extension
.
Simply pick the Open in GitHub / Bitbucket
extension from the list
cd $HOME/.vscode/extensions
git clone https://github.com/ziyasal/vscode-open-in-github.git
cd vscode-open-in-github
npm install
cd %USERPROFILE%\.vscode\extensions
git clone https://github.com/ziyasal/vscode-open-in-github.git
cd vscode-open-in-github
npm install
Press F1 and type Open in GitHub
.
Press F1 and type Copy GitHub link to clipboard
.
(The URL for Github will also include line ranges if there are lines selected in the editor)
Press F1 and type Open Pull Request
.
Press Ctrl+L G to activate. Press Ctrl+L C to copy active line link to clipboard.
Right click on explorer item and choose Open in GitHub
or Copy GitHub link to clipboard
.
Add following line into workspace settings;
{
"openInGitHub.gitHubDomain":"your custom github domain here",
"openInGitHub.requireSelectionForLines":false // If enabled, the copied or opened URL won't include line number(s) unless there's an active selection
"openInGitHub.providerType": "gitlab" //github, gitlab, bitbucket, ...
}
Have fun..
MIT © Ziya SARIKAYA @ziyasal & Contributors