An open API service indexing awesome lists of open source software.

https://github.com/td99/github-open-in-jetbrains-ide

Quickly open GitHub repositories in your favorite JetBrains IDE.
https://github.com/td99/github-open-in-jetbrains-ide

chrome-extension github github-extension javascript jetbrains jetbrains-ide

Last synced: 4 months ago
JSON representation

Quickly open GitHub repositories in your favorite JetBrains IDE.

Awesome Lists containing this project

README

          

# GitHub to JetBrains IDE

[![Lint, Validate, Build & Release](https://img.shields.io/github/actions/workflow/status/TD99/github-open-in-jetbrains-ide/build-and-release.yml?label=Lint%2C%20Validate%2C%20Build%20%26%20Release)](https://github.com/TD99/github-open-in-jetbrains-ide/actions/workflows/build-and-release.yml)

![Chrome Extension](https://img.shields.io/badge/Chrome%20Extension-%23000000.svg?style=flat&logo=chromewebstore&logoColor=white)
![Firefox Extension](https://img.shields.io/badge/Firefox%20Extension-%23000000.svg?style=flat&logo=firefoxbrowser&logoColor=white)
![JavaScript](https://img.shields.io/badge/JavaScript-%23000000.svg?style=flat&logo=javascript&logoColor=white)
![GitHub](https://img.shields.io/badge/GitHub-%23000000.svg?style=flat&logo=github&logoColor=white)
![JetBrains](https://img.shields.io/badge/JetBrains-%23000000.svg?style=flat&logo=jetbrains&logoColor=white)

## Overview
GitHub to JetBrains IDE is a browser extension that adds an `Open with ` button to GitHub repositories.
With a single click, you can open any GitHub project directly in your favorite JetBrains IDE.

The extension supports all major JetBrains IDEs, including IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, CLion, GoLand,
Rider, RubyMine, DataGrip, and DataSpell.

## Features
- Adds `Open with ` and dropdown options to GitHub's `Code` menu.
- Remembers your default JetBrains IDE selection.
- Opens repositories directly through the JetBrains Toolbox.
- Automatically detects cloned repositories to open them in the correct IDE.
- Integrates seamlessly with GitHub's interface.

## How It Works
When you visit a GitHub repository page, the extension injects a small script (`content.js`) that:

1. Detects the repository's clone URL.
2. Adds two buttons to the Code dropdown:
- `Open with ` (default IDE)
- `▼` (choose another IDE)
3. On click, the extension opens the repository using the `jetbrains://` URI scheme.
- Example: `jetbrains://idea/checkout/git?checkout.repo=https://github.com/user/repo.git`
4. If a repository is already cloned locally, JetBrains Toolbox automatically opens it in the correct IDE.

## Permissions
The extension requests the following permissions:

| Permission | Purpose |
|------------------------|--------------------------------------------------------------|
| `storage` | Saves the user's default IDE preference. |
| `https://github.com/*` | Injects the "Open with IDE" functionality into GitHub pages. |

## Installation (Development)

1. You can either:
- Clone this repository.
- Download the [latest release](https://github.com/TD99/github-open-in-jetbrains-ide/releases/latest) and extract
the contents.
2. Open `chrome://extensions/` in your browser.
3. Enable Developer mode (top-right toggle).
4. Click `Load unpacked`.
5. Select the folder containing this repository.

## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.