问题
I'm developing an intellij plugin supposed to be used in android studio. I've already setup the plugin development environment, but when I hit "Run" command it starts a new intellij instance with the plugin installed.
What I'm looking for is how to run the plugin directly on Android Studio, is that possibile? The only place where I think it can be configured is from "Run configurations" but I do not find anything useful there.
Thanks
回答1:
You can specify the platform to run on in the IntelliJ Platform Plugin SDK
settings, under Platform Settings | SDKs
in the Project Structure
settings. Point the IntelliJ Platform Plugin SDK home path
to your Android Studio installation.
Another option is to create a new Plugin Run Configuration. In the Run Configuration it is possible to specify the JRE to run on. Click on the ...
button there and select an Android Studio installation directory (e.g. /Applications/Android Studio.app/Contents
on the Mac). This way it is possible to create a Run Configuration for all IntelliJ Platform IDEs you want to test your plugin on.
来源:https://stackoverflow.com/questions/37035922/run-intellij-plugin-on-android-studio