Skip to content

Extension for Visual Studio Code which can be used to jump to a source code line in Github, Bitbucket, GitLab and Visualstudio.com

License

Notifications You must be signed in to change notification settings

glebv/vscode-open-in-github

 
 

Repository files navigation

vscode-open-in-github

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

Press F1 and type Copy GitHub link to clipboard.

copy

(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

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

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):


Brady Holt

💻 📖 ⚠️

Grzegorz Dziadkiewicz

💻 📖 ⚠️

Yuichi Tanikawa

💻 📖 ⚠️

Suan Yeo

💻

Benjamin Pasero

💻

Stuart Leeks

💻

Marvin Hagemeister

💻

linarnan

💻 ⚠️

Dan Seethaler

💻 ⚠️

John Arthur

💻

Eduardo Diaz

💻

Tom Esterez

💻

Anthony Brown

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © Ziya SARIKAYA @ziyasal & Contributors

About

Extension for Visual Studio Code which can be used to jump to a source code line in Github, Bitbucket, GitLab and Visualstudio.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.8%
  • Shell 33.2%