Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

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

Open In GitHub

sysoev

|
43,701 installs
| (10) | Free
Provides commands to quickly view the current file on GitHub.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open in GitHub

github-issues commitizen friendly

Provides commands to quickly view the current file on GitHub/Bitbucket.

Installation

Launch VS Code Quick Open (⌘+P), paste the following command, and type enter.

ext install vscode-open-in-github

Usage

When editing a file, use the command palette (cmd + shift + p / ctrl + shift + p) to:

  • Open the file in GitHub — "Open In GitHub: File"
  • Open the blame in GitHub — "Open In GitHub: Blame"
  • Open the history in GitHub — "Open In GitHub: History"
  • Copy GitHub URL for a file — "Copy GitHub URL: File"
  • Copy GitHub URL for blame for a file — "Copy GitHub URL: Blame"
  • Copy GitHub URL for history for a file — "Copy GitHub URL: History"

Commands Multiple remotes

Features

  • Supports multiple remotes and branches.
  • Supports in-house GitHub installations.
  • Works with Bitbucket and Gitlab.
  • Configurable default branch.
  • Open/Copy multiline selection.
  • Open/Copy current revision.

Configuration

Add these lines to the workspace settings:

{
  ...
  "openInGitHub.defaultBranch": "master",
  "openInGitHub.defaultRemote": "origin",
  "openInGithub.maxBuffer": 512000,
  "openInGitHub.excludeCurrentRevision": false,
  ...
}

Links

Logo taken from here: https://octodex.github.com/

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