Open Github and Gitlab links in VSCode

Latest Version

Version
1.4.0
Update
September 14, 2022
Size
60.87KiB
Developer
Category
Users
10,000+
Rating
4.75 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
ContextMenus
Scripting
Storage
See more

Open in VSCode Extension

Just right click on any link to a file and select \"Open in VSCode\". You can also click on line links to open the file to the specific file.

Once you have installed, make sure to configure the extension in the options page.
You can do this by right clicking on the \"Open in VSCode\" icon in the extensions bar on chrome, and then selecting \"Options\".

Troubleshooting
---------------

The extension expects the repository you are browsing to already be cloned into the folder in the options page.

Tested with the following websites:

- Github (no line support)
- Gitlab

It might work on some other websites as well (no guarantee), if you do discover that it works on other websites please let me know so I can add it to the list!

All I see is a blank page!
--------------------------

This could be happening for numerous reasons. Make sure you have set the options correctly in the options page.
If you want, you can check what URL the extension is trying to open by enabling the debug mode in the options.
You might want to check out how VSCode handles links: https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls

Feedback
--------

If you are having any issues, or would like to request a new feature, don't hesitate to open an issue on github: https://github.com/aberonni/open-in-vscode/issues
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Open in VSCode", "version": "1.4.0", "description": "Open Github and Gitlab links in VSCode", "action": { "default_icon": "icons/icon19.png", "default_title": "Open in VSCode" }, "author": "Domenico Gemoli", "permissions": [ "activeTab", "contextMenus", "scripting", "storage" ], "background": { "service_worker": "contextmenu.js" }, "options_page": "options.html", "homepage_url": "https://github.com/aberonni/open-in-vscode", "offline_enabled": true, "icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }}
Read more