-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable support for Pycharm using the built-in web server #16
Conversation
@@ -17,6 +17,7 @@ <h3>Open GitHub links in your IDE</h3> | |||
<option value="phpstorm">PhpStorm</option> | |||
<option value="intellij-idea">IntelliJ IDEA</option> | |||
<option value="webstorm">WebStorm</option> | |||
<option value="pycharm">Pycharm (Built-in web server)</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<option value="pycharm">Pycharm (Built-in web server)</option> | |
<option value="pycharm">PyCharm (built-in web server)</option> |
const Http = new XMLHttpRequest(); | ||
Http.open("GET", url) | ||
Http.send(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const Http = new XMLHttpRequest(); | |
Http.open("GET", url) | |
Http.send(); | |
void fetch(url) |
@@ -19,6 +19,7 @@ This browser extension allows you to open files in your IDE directly from GitHub | |||
- VS Code Insiders | |||
- PhpStorm | |||
- IntelliJ IDEA | |||
- Pycharm (Built-in web server) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Pycharm (Built-in web server) | |
- PyCharm (built-in web server) |
name: "Pycharm (Built-in web server)", | ||
icon: "icons/intellij-idea32.png", | ||
openIDE: (repo: string, file: string, line?: string) => { | ||
const url = `http://localhost:63342/api/file?file=${OPTIONS.localPathForRepositories}/${repo}/${file}&line=${line ? `${line}` : "1"}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const url = `http://localhost:63342/api/file?file=${OPTIONS.localPathForRepositories}/${repo}/${file}&line=${line ? `${line}` : "1"}` | |
const url = `http://localhost:63342/api/file?file=${OPTIONS.localPathForRepositories}/${repo}/${file}&line=${line ?? "1"}` |
@@ -28,6 +29,8 @@ PhpStorm & IntelliJ IDEA support is native on MacOS, but on Linux and Windows yo | |||
|
|||
I have not tested WebStorm support yet, feedbacks are welcome! | |||
|
|||
If you wish to use Pycharm (Built-in web server) then you must enable the intellij built-in web server (see [here](https://www.jetbrains.com/help/idea/php-built-in-web-server.html#configuring-built-in-web-server)) on port 63342 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you wish to use Pycharm (Built-in web server) then you must enable the intellij built-in web server (see [here](https://www.jetbrains.com/help/idea/php-built-in-web-server.html#configuring-built-in-web-server)) on port 63342 | |
If you wish to use PyCharm (Built-in web server) then you must enable the intellij built-in web server (see [here](https://www.jetbrains.com/help/idea/php-built-in-web-server.html#configuring-built-in-web-server)) on port 63342. |
Thanks @rnw159 for your contribution 😉 I made some updates to your PR in commit 7511be7:
I just published v1.1.7 to Chrome Web Store and Firefox Addons. |
Hey thanks for merging! I love this extension 💚 |
Enable support for Pycharm using the built-in web server
Pycharm has a built-in webserver that makes it easy to open files. I have been using this locally for a while and decided to make a pr to share my work.
Cheers!
There might be better ways to do this, but this works really well for me.