This is an example IJ plugin written in Scala and managed by SBT.
Apart from the basic IJ plugin structure, this project also provides some example code to play with and demonstrates some IntelliJ platform API features.
Extended documentation on the build features such as packaging the artifact, uploading to a plugin marketplace, etc. is covered by the sbt-idea-plugin readme
- Open the
build.sbtfile in IntelliJ IDEA as a project - Install JDK 17 and set it in
File | Project Settings | Project | SDK - To run your plugin, run or debug the
myAwesomeFrameworkrun configuration
-
intellijBuildkey in build.sbt contains the version of the dependency on IDEA, you can change it. -
intellijPluginskey in build.sbt contains a dependency on the "Properties" IJ plugin -
there's an external library dependency that will be packaged into your plugin distribution
-
Don't forget to replace the plugin name in build.sbt. You also need to change the name in resources/META-INF/plugin.xml.
PopupDialogActioncreates an action under the "Tools" menuSimpleCompletionContributoradds the "HELLO" completion item to the values of the properties filesFileOpenedListenershows a popup when a file is opened in the editorApplicationHelloServiceandProjectHelloServiceshow examples of IJ platform service componentsMyToolWindowFactorycreates a new ToolWindow at the bottom of the window