👁 Open in GitHub / Bitbucket / visualstudio.com
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
👁 Build Status
👁 All Contributors
Install
Tested with VsCode 0.10.1
Press F1 and narrow down the list commands by typing extension. Pick Extensions: Install Extension.
👁 installation
Simply pick the Open in GitHub / Bitbucket extension from the list
Install Manual
Mac & Linux
cd $HOME/.vscode/extensions
git clone https://github.com/ziyasal/vscode-open-in-github.git
cd vscode-open-in-github
npm install
Windows
cd %USERPROFILE%\.vscode\extensions
git clone https://github.com/ziyasal/vscode-open-in-github.git
cd vscode-open-in-github
npm install
Usage
Command
Press F1 and type Open in GitHub.
👁 Open function
Press F1 and type Copy GitHub link to clipboard.
👁 Copy function
(The URL for Github will also include line ranges if there are lines selected in the editor)
Press F1 and type Open Pull Request.
👁 Copy function
Keybord Shortcut
Press Ctrl+L G to activate.
Press Ctrl+L C to copy active line link to clipboard.
Context menu
Right click on explorer item and choose Open in GitHub or Copy GitHub link to clipboard.
👁 Context menu options
Configure custom github domain
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.useCommitSHAInURL": false,
"openInGitHub.providerType": "gitlab", //github, gitlab, bitbucket, ...
"openInGitHub.providerProtocol": "https" //https, http. Useful for custom domains that don't support https. Defaults to https.
}
Have fun..
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © Ziya SARIKAYA @ziyasal & Contributors