Skip to content

Instantly share code, notes, and snippets.

@jiripudil
Created November 19, 2018 07:52
Show Gist options
  • Save jiripudil/7c1dff4869a234be199ddace4f131877 to your computer and use it in GitHub Desktop.
Save jiripudil/7c1dff4869a234be199ddace4f131877 to your computer and use it in GitHub Desktop.
Running and compiling a PhpStorm plugin
  1. Open File | Project Structure.
  2. In Platform Settings | SDK, add an Intellij Platform Plugin SDK pointing to an installation of PhpStorm.
  3. In Project Settings | Libraries, add a Java library with two files from the installation of PhpStorm: plugins/php/lib/php.jar and plugins/php/lib/php-openapi.jar.
  4. In Project Settings | Modules, set the Module SDK to the SDK created in step 2.
  5. At the same place, add the library created in step 3 to the module if it's not there already. Then set its Scope to Provided and make sure the Export checkbox is unchecked.

Now you should be able to create a Plugin-type run configuration and run the plugin. To build a final jar file, use Build | Prepare Plugin Module For Deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment