{"id":23586445,"url":"https://github.com/psparwez/open-in-vscode","last_synced_at":"2025-10-10T00:34:18.413Z","repository":{"id":268120210,"uuid":"903357612","full_name":"psparwez/open-in-vscode","owner":"psparwez","description":"\"Adds an 'Open in VSCode' button to GitHub repository pages, allowing users to open repositories directly in Visual Studio Code with a single click.\"","archived":false,"fork":false,"pushed_at":"2025-01-17T06:19:44.000Z","size":372,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T07:48:24.393Z","etag":null,"topics":["browser-extension","chrome-extension","extension","github","github-extension","github-tools","openinvscode","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/psparwez.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,"zenodo":null}},"created_at":"2024-12-14T11:57:56.000Z","updated_at":"2025-02-01T19:03:23.000Z","dependencies_parsed_at":"2024-12-14T14:18:20.753Z","dependency_job_id":"ad945edb-7169-4c90-849c-95451ab882a0","html_url":"https://github.com/psparwez/open-in-vscode","commit_stats":null,"previous_names":["psparwez/open-in-vsode","psparwez/open-in-vscode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psparwez/open-in-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psparwez%2Fopen-in-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psparwez%2Fopen-in-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psparwez%2Fopen-in-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psparwez%2Fopen-in-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psparwez","download_url":"https://codeload.github.com/psparwez/open-in-vscode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psparwez%2Fopen-in-vscode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002359,"owners_count":26083357,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["browser-extension","chrome-extension","extension","github","github-extension","github-tools","openinvscode","vscode"],"created_at":"2024-12-27T04:10:48.234Z","updated_at":"2025-10-10T00:34:18.397Z","avatar_url":"https://github.com/psparwez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"./assets/VSCode-icon.jpg\" width=\"60\"\u003e\n\u003ch1\u003e Open in VSCode - GitHub Button Extension \u003c/h1\u003e\n\nA simple JavaScript script/extension that adds an **\"Open in VSCode\"** button \u003cbr\u003e to GitHub repository pages. This allows users to open and clone the repository directly \u003cbr\u003e into their **Visual Studio Code** editor with a single click.\n\u003c/div\u003e\n\n---\n\n## 📸 Demo Screenshots\n\n![Demo of Open in VSCode button](https://github.com/user-attachments/assets/efd5c725-27c9-41ed-8888-0aaec7b0e206)\n\n---\n\n## 🚀 Features\n\n- Automatically injects an **\"Open in VSCode\"** button into **GitHub repository pages**.\n- Allows users to open and clone the selected repository directly in **Visual Studio Code**.\n- **Works seamlessly** with GitHub's dynamic page loading (PJAX navigation).\n- **Lightweight** and easy to integrate into any browser as an extension or directly as a user script.\n- **Supports GitHub's standard repo pages** and **private repositories** (as long as the user is authenticated).\n\n---\n\n\n\n## 🛠️ Installation\n\n### Option 1: Browser Extension\n\nThe easiest way to install this functionality is by using the browser extension. You can install the extension directly into Chrome or other Chromium-based browsers.\n\n#### Steps to Install:\n1. **Clone this repository:**\n```base\ngit clone https://github.com/psparwez/open-in-vsode.git\n```\n\n\n2. **Load the extension into your browser:**\n- Open Chrome (or any Chromium-based browser like Edge).\n- Go to `chrome://extensions/` in the address bar.\n- Enable **Developer Mode** in the top right.\n- Click on **Load unpacked** and select the directory of the cloned repo.\n\n3. **Verify the installation:**\n- Navigate to any GitHub repository page (e.g., `https://github.com/{username}/{repo-name}`).\n- You should now see the **\"Open in VSCode\"** button appear on the repository page.\n- Click the button to open the repository directly in **Visual Studio Code**.\n\n#### Notes:\n- This extension works only if **Visual Studio Code** is installed on your system.\n- Ensure you have authentication set up in VS Code for private repositories.\n\n---\n\n### Option 2: Using the Script Directly (No Extension)\n\nIf you prefer not to install the browser extension, you can use this script directly with a userscript manager like **Tampermonkey** or **Greasemonkey**.\n\n#### Steps to Install:\n1. **Install a userscript manager:**\n- [Tampermonkey for Chrome](https://www.tampermonkey.net/)\n- [Greasemonkey for Firefox](https://www.greasespot.net/)\n\n2. **Create a new userscript:**\n- Open the userscript manager and create a new script.\n- Copy and paste the `content.js` code from this repository into the script editor.\n\n3. **Save and Activate the Script:**\n- Save the script and refresh any GitHub repository page.\n- The **\"Open in VSCode\"** button should appear on the page.\n\n\n\n---\n\n## 🤝 Contributing\n\nFeel free to fork this repository, improve the script, or add new features. Pull requests are welcome! 🚀\n\nTo contribute:\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes and commit (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a pull request.\n\nPlease follow the style and formatting of the existing code. If you're adding a new feature, make sure to update the documentation.\n\n---\n\n## 📜 License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](https://github.com/psparwez/open-in-vsode/tree/main?tab=MIT-1-ov-file) file for details.\n\n---\n\n## 💬 Feedback\n\nIf you encounter any issues, bugs, or have suggestions for improvements, please open an **issue** on GitHub. We value your feedback and will try to address it as soon as possible.\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsparwez%2Fopen-in-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsparwez%2Fopen-in-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsparwez%2Fopen-in-vscode/lists"}