{"id":16352251,"url":"https://github.com/bugthesystem/vscode-open-in-github","last_synced_at":"2025-04-06T09:10:25.188Z","repository":{"id":43804779,"uuid":"45256914","full_name":"bugthesystem/vscode-open-in-github","owner":"bugthesystem","description":"Extension for Visual Studio Code which can be used to jump to a source code line in Github, Bitbucket, GitLab and Visualstudio.com","archived":false,"fork":false,"pushed_at":"2024-03-30T05:54:15.000Z","size":1610,"stargazers_count":201,"open_issues_count":66,"forks_count":72,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T03:11:52.841Z","etag":null,"topics":["bitbucket","extension","github","open-in-bitbucket","open-in-github","open-in-visualstudio-com","vscode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugthesystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-30T14:47:13.000Z","updated_at":"2025-03-26T20:22:23.000Z","dependencies_parsed_at":"2025-01-03T22:02:06.979Z","dependency_job_id":null,"html_url":"https://github.com/bugthesystem/vscode-open-in-github","commit_stats":{"total_commits":146,"total_committers":37,"mean_commits":3.945945945945946,"dds":0.6164383561643836,"last_synced_commit":"b9f69fe06c3541d12f0f6d07f852733aa4c0d5e4"},"previous_names":["bugthesystem/vscode-open-in-github"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fvscode-open-in-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fvscode-open-in-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fvscode-open-in-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fvscode-open-in-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugthesystem","download_url":"https://codeload.github.com/bugthesystem/vscode-open-in-github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457803,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitbucket","extension","github","open-in-bitbucket","open-in-github","open-in-visualstudio-com","vscode"],"created_at":"2024-10-11T01:25:27.949Z","updated_at":"2025-04-06T09:10:25.170Z","avatar_url":"https://github.com/bugthesystem.png","language":"JavaScript","readme":"![vscode-open-in-github](images/icon_200.png?raw=true \"Open in GitHub / GitLab / Gitea / Bitbucket / visualstudio.com\")\n\n**Supports :** GitHub, GitLab, Gitea, Bitbucket, and Visualstudio.com.\n\n\u003e Extension for Visual Studio Code which can be used to jump to a source code line in GitHub, GitLab, Gitea, Bitbucket and Visualstudio.com\n\n[![Build Status](https://travis-ci.org/ziyasal/vscode-open-in-github.svg?branch=master)](https://travis-ci.org/ziyasal/vscode-open-in-github) [![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors)\n\n## Install\n\n**Tested with VsCode 0.10.1**\n\nPress \u003ckbd\u003eF1\u003c/kbd\u003e and narrow down the list commands by typing `extension`. Pick `Extensions: Install Extension`.\n\n![installation](screenshots/install.png?raw=true \"installation\")\n\nSimply pick the `Open in GitHub / Bitbucket` extension from the list\n\n## Install Manual\n\n### Mac \u0026 Linux\n\n```sh\ncd $HOME/.vscode/extensions\ngit clone https://github.com/ziyasal/vscode-open-in-github.git\ncd vscode-open-in-github\nnpm install\n```\n\n### Windows\n\n```sh\ncd %USERPROFILE%\\.vscode\\extensions\ngit clone https://github.com/ziyasal/vscode-open-in-github.git\ncd vscode-open-in-github\nnpm install\n```\n\n## Usage\n\n### Command\n\nPress \u003ckbd\u003eF1\u003c/kbd\u003e and type `Open in GitHub`.\n\n![open](screenshots/open-in-github.png?raw=true \"Open function\")\n\nPress \u003ckbd\u003eF1\u003c/kbd\u003e and type `Copy GitHub link to clipboard`.\n\n![copy](screenshots/copy.png?raw=true \"Copy function\")\n\n(The URL for GitHub will also include line ranges if there are lines selected in the editor)\n\nPress \u003ckbd\u003eF1\u003c/kbd\u003e and type `Open Pull Request`.\n\n![copy](screenshots/pull-req-cmd.png?raw=true \"Copy function\")\n\n### Keybord Shortcut\n\n Press \u003ckbd\u003eCtrl+L G\u003c/kbd\u003e to activate.\n Press \u003ckbd\u003eCtrl+L C\u003c/kbd\u003e to copy active line link to clipboard.\n\n### Context menu\n\nRight click on explorer item and choose `Open in GitHub` or `Copy GitHub link to clipboard`.\n\n![context](screenshots/context-menu.png?raw=true \"Context menu options\")\n\n### Configure custom github domain\n\nAdd following line into workspace settings;\n\n```js\n{\n  \"openInGitHub.gitHubDomain\": \"your custom github domain here\",\n  \"openInGitHub.requireSelectionForLines\": false,   // If enabled, the copied or opened URL won't include line number(s) unless there's an active selection\n  \"openInGitHub.useCommitSHAInURL\": false,\n  \"openInGitHub.providerType\": \"gitlab\", // github, gitlab, gitea, bitbucket, ...\n  \"openInGitHub.providerProtocol\": \"https\" // https, http. Useful for custom domains that don't support https. Defaults to https.\n}\n```\n\nCustom Settings\n\n```js\n{\n  \"openInGitHub.providerType\": \"custom\", // important, otherwise the following settings will not be read\n  \"openInGitHub.customProviderPath\": \"https://your-git-repo-hosting-domain:port/path-to-the-repo\",\n  \"openInGitHub.customBlobPath\": \"+\", // for example, this is `blob` in gitlab\n  \"openInGitHub.customLinePrefix\": \"#\", // for example, this is `#L12` instead of just `#12` in most git hosting service\n  \"openInGitHub.defaultPullRequestBranch\": \"master\", // for example, this could be `development`\n  // optional\n  \"openInGitHub.alwaysOpenInDefaultBranch\": true // if you always work on your local branch, and checking it online will always get 404\n}\n```\n\nHave fun..\n\n## Debug Travis CI locally\n\n```bash\n  cd $your_vscode_open_in_github_local_directory_path\n\n  BUILD_ID=\"build-$RANDOM\" \u0026\u0026 \\\n  LATEST_GARNET_TAG_ID=\"1515445631-7dfb2e1\" \u0026\u0026 \\\n  MAPPED_DOCKER_PATH=/home/travis/vscode-open-in-github \u0026\u0026 \\\n  docker run \\\n    -name $BUILD_ID\n    -v $(pwd):$MAPPED_DOCKER_PATH \\\n    -dit \"travisci/ci-garnet:packer-$LATEST_GARNET_TAG_ID\" /sbin/init \u0026\u0026 \\\n  docker exec -it $BUILDID bash -l\n  # to rerun last command: look for the last container with docker ps\n\n  su - travis # to use nvm and npm\n\n  cd /vscode-open-in-github\n\n  # replicate steps in either A) .travis.yml B) worker log in Travis CI\n```\n\nReference: [Stackoverflow](https://stackoverflow.com/questions/21053657/how-to-run-travis-ci-locally)\n\n## Known Limitations\n- Extension doesn't currently works with Git worktrees\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n| [\u003cimg src=\"https://avatars0.githubusercontent.com/u/759811?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eBrady Holt\u003c/sub\u003e](https://www.geekytidbits.com)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=bradymholt \"Code\") [📖](https://github.com/ziyasal/vscode-open-in-github/commits?author=bradymholt \"Documentation\") [⚠️](https://github.com/ziyasal/vscode-open-in-github/commits?author=bradymholt \"Tests\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/8547855?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eGrzegorz Dziadkiewicz\u003c/sub\u003e](https://github.com/gdziadkiewicz)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=gdziadkiewicz \"Code\") [📖](https://github.com/ziyasal/vscode-open-in-github/commits?author=gdziadkiewicz \"Documentation\") [⚠️](https://github.com/ziyasal/vscode-open-in-github/commits?author=gdziadkiewicz \"Tests\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/1145226?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eYuichi Tanikawa\u003c/sub\u003e](http://itiut.hatenablog.com/)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=itiut \"Code\") [📖](https://github.com/ziyasal/vscode-open-in-github/commits?author=itiut \"Documentation\") [⚠️](https://github.com/ziyasal/vscode-open-in-github/commits?author=itiut \"Tests\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/192727?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eSuan Yeo\u003c/sub\u003e](http://suanaikyeo.com)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=suan \"Code\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/900690?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eBenjamin Pasero\u003c/sub\u003e](http://code.visualstudio.com)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=bpasero \"Code\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/1824461?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eStuart Leeks\u003c/sub\u003e](http://blogs.msdn.com/stuartleeks)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=stuartleeks \"Code\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/1062408?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eMarvin Hagemeister\u003c/sub\u003e](https://marvinhagemeister.github.io)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=marvinhagemeister \"Code\") |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| [\u003cimg src=\"https://avatars2.githubusercontent.com/u/649067?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003elinarnan\u003c/sub\u003e](https://github.com/linarnan)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=linarnan \"Code\") [⚠️](https://github.com/ziyasal/vscode-open-in-github/commits?author=linarnan \"Tests\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/11202705?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eDan Seethaler\u003c/sub\u003e](https://github.com/danseethaler)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=danseethaler \"Code\") [⚠️](https://github.com/ziyasal/vscode-open-in-github/commits?author=danseethaler \"Tests\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/7483101?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eJohn Arthur\u003c/sub\u003e](https://github.com/johnpaularthur)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=johnpaularthur \"Code\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/1424663?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eEduardo Diaz\u003c/sub\u003e](https://github.com/ziluvatar)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=ziluvatar \"Code\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/815236?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eTom Esterez\u003c/sub\u003e](https://github.com/testerez)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=testerez \"Code\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/2149559?v=4\" width=\"75px;\"/\u003e\u003cbr /\u003e\u003csub\u003eAnthony Brown\u003c/sub\u003e](https://github.com/antxxxx)\u003cbr /\u003e[💻](https://github.com/ziyasal/vscode-open-in-github/commits?author=antxxxx \"Code\") |\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n\n\n## License\n\nMIT © [Ziya SARIKAYA @ziyasal](https://github.com/ziyasal) \u0026 Contributors\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugthesystem%2Fvscode-open-in-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugthesystem%2Fvscode-open-in-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugthesystem%2Fvscode-open-in-github/lists"}