Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open in GitHubNew to Visual Studio Code? Get it now.

Open in GitHub

Fabio Spampinato

fabiospampinato.com
|
54,495 installs
| (7) | Free
Open the current project or file in github.com.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open in GitHub

Logo

Open the current project or file in github.com.

There are many other extensions for doing this, but they either don't work well for me or they provide too few/many functionalities.

Install

Follow the instructions in the Marketplace, or run the following in the command palette:

ext install fabiospampinato.vscode-open-in-github

Usage

It adds 12 commands to the command palette:

'Open in GitHub: Project' // Open the current project in GitHub
'Open in GitHub: File' // Open the current file in GitHub
'Open in GitHub: File Blame' // Open the current file's blame in GitHub
'Open in GitHub: File History' // Open the current file's history in GitHub
'Open in GitHub: File Permalink' // Open the current file's permalink in GitHub
'Open in GitHub: Issues' // Open the current project's issues in GitHub
'Open in GitHub: Pull Requests' // Open the current project's pull requests in GitHub
'Open in GitHub: Releases' // Open the current project's releases in GitHub
'Open in GitHub: Actions' // Open the current project's actions in GitHub
'Open in GitHub: Projects' // Open the current project's projects in GitHub
'Open in GitHub: Wiki' // Open the current project's wiki in GitHub
'Open in GitHub: Settings' // Open the current project's settings in GitHub

Settings

{
  "openInGitHub.github.domain": "github.com", // Custom GitHub domain
  "openInGitHub.remote.name": "origin", // Name of the remote repository
  "openInGitHub.remote.branch": "master", // Name of the remote branch
  "openInGitHub.useLocalBranch": true, // Use the local branch instead of the fixed remote branch
  "openInGitHub.useLocalRange": true, // Highlight the local selection range, if there's one
  "openInGitHub.useLocalLine": false // Highlight the local line if there's no selection range
}

Demo

Opening the project

Project

Opening the file

File

Contributing

If you found a problem, or have a feature request, please open an issue about it.

If you want to make a pull request you can debug the extension using Debug Launcher.

License

MIT © Fabio Spampinato

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft