How to create a plugin which needs configuration from user


I am new to intellij plugin development. I have started writing a plugin to add some actions to context menu. I am able to create the business logic..but I have hardcoded some file path, class path which sould be set by the user while installing the plug in. How can I force the user to set up some configuration which can be used by plugin afterwards.



You need to provide your own Configurable within the plugin. Then, when you detect that some necessary setting is undefined, you can show a balloon with a link which forwards to your settings. Feel free to check how this class uses that approach.



Please sign in to leave a comment.