https://github.com/d4rkr00t/vscode-open-in-github
Visual Studio Code Extension — Open file in GitHub
https://github.com/d4rkr00t/vscode-open-in-github
bitbucket extension git github visual-studio-code
Last synced: 2 months ago
JSON representation
Visual Studio Code Extension — Open file in GitHub
- Host: GitHub
- URL: https://github.com/d4rkr00t/vscode-open-in-github
- Owner: d4rkr00t
- License: mit
- Created: 2016-05-28T11:46:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T00:38:43.000Z (9 months ago)
- Last Synced: 2025-03-04T19:42:51.233Z (2 months ago)
- Topics: bitbucket, extension, git, github, visual-studio-code
- Language: TypeScript
- Size: 362 KB
- Stars: 55
- Watchers: 2
- Forks: 22
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Open in GitHub
[](https://github.com/d4rkr00t/vscode-open-in-github/issues)
[](http://commitizen.github.io/cz-cl)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"
## 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:
```js
{
...
"openInGitHub.defaultBranch": "master",
"openInGitHub.defaultRemote": "origin",
"openInGithub.maxBuffer": 512000,
// When enabled skips branch detection and always uses default branch.
"openInGitHub.alwaysUseDefaultBranch": false,// Determines whether to disable URL suggestions for the current revision (commit SHA)
"openInGitHub.excludeCurrentRevision": false,// Allows mapping from one remote to another when generating a URL
"openInGitHub.remoteURLMapping": {
"https://mirror.github.com": "https://github.com",
}
...
}
```## Links
Logo taken from here: [https://octodex.github.com/](https://octodex.github.com/)