Skip to content

aberonni/open-in-vscode

Repository files navigation

Open in VSCode

Open links to source code in VSCode.

Screenshot

Installation

Just install from the Chrome Web Store. 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".

Usage

The extension expects the repository you are browsing to already be cloned into the "base path" that you must first define in the options page.

Use in one of three ways:

  • 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.
  • Right click anywhere on a page and select "Open in VSCode" to open the currently viewed file
  • Click on the extension icon in the toolbar to open the currently viewed file

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.

Feedback

If you are having any issues, or would like to request a new feature, don't hesitate to open an issue on github!

License

Licensed under the MIT License.

About

Open Github and Gitlab links in VSCode

Resources

License

Stars

Watchers

Forks

Packages

No packages published