在Android Studio上运行intellij插件 [英] Run intellij plugin on Android Studio
问题描述
我正在开发应该在android studio中使用的intellij插件. 我已经设置了插件开发环境,但是当我点击运行"命令时,它将启动安装了插件的新intellij实例.
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.
我要寻找的是如何直接在Android Studio上运行插件,这可能吗?我认为可以对其进行配置的唯一地方是运行配置",但是我在那里找不到任何有用的信息.
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.
谢谢
推荐答案
您可以在Project Structure
设置的Platform Settings | SDKs
下的IntelliJ Platform Plugin SDK
设置中指定要运行的平台.将IntelliJ Platform Plugin SDK home path
指向您的Android Studio安装.
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.
另一个选项是创建一个新的插件运行配置.在运行配置"中,可以指定要在其上运行的JRE.点击此处的...
按钮,然后选择一个Android Studio安装目录(例如,在Mac上为/Applications/Android Studio.app/Contents
).这样,可以为要在其上测试插件的所有IntelliJ Platform IDE创建运行配置.
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.
这篇关于在Android Studio上运行intellij插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!