All Projects → ziyasal → Vscode Open In Github

ziyasal / Vscode Open In Github

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

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vscode Open In Github

Vscode Es7 Javascript React Snippets
Extension for Javascript/React snippets with search supporting ES7 and babel features
Stars: ✭ 435 (+188.08%)
Mutual labels:  vscode, extension
Vscode Simple Vim
Vim extension for VSCode
Stars: ✭ 38 (-74.83%)
Mutual labels:  vscode, extension
Codestream
The Code Collaboration Tool Built for Remote Teams
Stars: ✭ 459 (+203.97%)
Mutual labels:  vscode, bitbucket
Bracketpair
Bracket Colorizer Extension for VSCode
Stars: ✭ 374 (+147.68%)
Mutual labels:  vscode, extension
Vscode Highlight
Advanced text highlighter based on regexes. Useful for todos, annotations etc.
Stars: ✭ 71 (-52.98%)
Mutual labels:  vscode, extension
Amvim For Vscode
The Vim mode for Visual Studio Code(vscode) that works as expected.
Stars: ✭ 393 (+160.26%)
Mutual labels:  vscode, extension
Snipsnap
The ultimate snippets collection for VS Code
Stars: ✭ 840 (+456.29%)
Mutual labels:  vscode, extension
Vue Vscode Extensionpack
The extensions I use when developing a Vue application with VS Code
Stars: ✭ 264 (+74.83%)
Mutual labels:  vscode, extension
Vscode Php Docblocker
Simple docblocker for php
Stars: ✭ 64 (-57.62%)
Mutual labels:  vscode, extension
Vscode Glua Enhanced
👨‍💻 Garry's Mod Lua VSCode Extension for enhanced auto completion, wiki integration, snippets, color palette, and much more...
Stars: ✭ 64 (-57.62%)
Mutual labels:  vscode, extension
Openvsx
An open-source registry for VS Code extensions
Stars: ✭ 344 (+127.81%)
Mutual labels:  vscode, extension
Vuerd Vscode
ERD Editor vscode extension
Stars: ✭ 95 (-37.09%)
Mutual labels:  vscode, extension
Frontend Vscode Extensionpack
(820+ Users) Handpicked collection of vscode extensions for FE development. Get the extension @ https://marketplace.visualstudio.com/items?itemName=solodynamo.frontend-vscode-extensionpack
Stars: ✭ 329 (+117.88%)
Mutual labels:  vscode, extension
Upmgitextension
This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.
Stars: ✭ 438 (+190.07%)
Mutual labels:  extension, bitbucket
Vscode Cordova
A Visual Studio Code extension providing intellisense, debug, and build support for Cordova and Ionic projects.
Stars: ✭ 267 (+76.82%)
Mutual labels:  vscode, extension
Vscode Todo Plus
Manage todo lists with ease. Powerful, easy to use and customizable.
Stars: ✭ 622 (+311.92%)
Mutual labels:  vscode, extension
vscode-note
a simple note-taking extension for vscode.
Stars: ✭ 29 (-80.79%)
Mutual labels:  extension, vscode
root-file-viewer
View ROOT files directly in VS Code!
Stars: ✭ 20 (-86.75%)
Mutual labels:  extension, vscode
Vscode Better Merge
Better merge conflict support for vscode
Stars: ✭ 46 (-69.54%)
Mutual labels:  vscode, extension
Vscode Vega Viewer
VSCode extension for Interactive Preview of Vega & Vega-Lite maps 🗺️ & graphs 📈
Stars: ✭ 75 (-50.33%)
Mutual labels:  vscode, extension

vscode-open-in-github

Supports : GitHub, GitLab, Gitea, Bitbucket, and Visualstudio.com.

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

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, gitea, bitbucket, ...
  "openInGitHub.providerProtocol": "https" // https, http. Useful for custom domains that don't support https. Defaults to https.
}

Custom Settings

{
  "openInGitHub.providerType": "custom", // important, otherwise the following settings will not be read
  "openInGitHub.customProviderPath": "https://your-git-repo-hosting-domain:port/path-to-the-repo",
  "openInGitHub.customBlobPath": "+", // for example, this is `blob` in gitlab
  "openInGitHub.customLinePrefix": "#", // for example, this is `#L12` instead of just `#12` in most git hosting service
  "openInGitHub.defaultPullRequestBranch": "master", // for example, this could be `development`
  // optional
  "openInGitHub.alwaysOpenInDefaultBranch": true // if you always work on your local branch, and checking it online will always get 404
}

Have fun..

Debug Travis CI locally

  cd $your_vscode_open_in_github_local_directory_path

  BUILD_ID="build-$RANDOM" && \
  LATEST_GARNET_TAG_ID="1515445631-7dfb2e1" && \
  MAPPED_DOCKER_PATH=/home/travis/vscode-open-in-github && \
  docker run \
    -name $BUILD_ID
    -v $(pwd):$MAPPED_DOCKER_PATH \
    -dit "travisci/ci-garnet:packer-$LATEST_GARNET_TAG_ID" /sbin/init && \
  docker exec -it $BUILDID bash -l
  # to rerun last command: look for the last container with docker ps

  su - travis # to use nvm and npm

  cd /vscode-open-in-github

  # replicate steps in either A) .travis.yml B) worker log in Travis CI

Reference: Stackoverflow

Known Limitations

  • Extension doesn't currently works with Git worktrees

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].