Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/evroon/github-pycharm

Opens GitHub files in PyCharm
https://github.com/evroon/github-pycharm

firefox github javascript plugin pycharm

Last synced: about 1 month ago
JSON representation

Opens GitHub files in PyCharm

Awesome Lists containing this project

README

        

# GitHub PyCharm
This add-on for Firefox adds buttons to GitHub pages that allow you to open files directly in PyCharm. \
Install url: https://addons.mozilla.org/addon/github-pycharm

![preview](icons/preview.png)

## Usage
This add-on adds buttons in GitHub when viewing individual files, comments placed in PRs, the `files changed` tab of PRs and commits.
It will add buttons that, if pressed, open files in PyCharm. If you select a line in GitHub, it will
open the file at the corresponding line number. The first time, PyCharm will ask you to accept opening files from incoming requests, which
must be accepted in order for this add-on to work.

This add-on should actually work for any Jetbrains IDE, not just PyCharm.

**Note**: PyCharm will have to be already opened with the correct project for this add-on to work.

## How it works
When you press the `Open in PyCharm` button, the content script will determine which file and
line number you are trying to open. The content script sends an event to the background script.
The event contains a URL that looks like: `http://localhost:63342/api/file/:`.
The background script sends an HTTP request to this URL. The Jetbrains IDE listens (by default) on this
port and will try to find the file you requested and open it in the IDE.

This feature is documented (not extensively) in [the docs](https://www.jetbrains.com/help/idea/php-built-in-web-server.html#configuring-built-in-web-server).

## Install manually
To install this add-on manually, you have two options:

* Temporarily install the add-on: Go to `about:debugging#/runtime/this-firefox` and click the `Load Temporary Add-On`, and just select one of the files of this repository.

* Permanently install the add-on: Go to `about:addons`, press the settings/gears icon and select `Install Add-on from File...` and select a zipped file of this repository.