GithubHelp home page GithubHelp logo

isabella232 / sbt-idea-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetbrains/sbt-idea-example

0.0 0.0 0.0 31 KB

SBT based IntellJ plugin template project

Scala 88.96% Java 11.04%

sbt-idea-example's Introduction

Sample IntelliJ platform plugin written in Scala

This is an example IJ plugin written in Scala and managed by SBT.

Apart from basic IJ plugin structure this project also provides some example code to play with and demonstrate some IntelliJ platform API features.

Extended documentation on the build features such as packaging the artifact, uploading to plugin marketplace, etc. is covered by the sbt-idea-plugin readme

Quick Start

  • Open the build.sbt file in IntelliJ IDEA as a project
  • To run your plugin, run or debug the myAwesomeFramework run configuration

Example build features

  • intellijBuild key in build.sbt contains version of the dependency on IDEA, you can change it.

  • intellijPlugins key 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 name in resources/META-INF/plugin.xml.

Example plugin components

  • PopupDialogAction creates an action under the "Tools" menu
  • SimpleCompletionContributor adds the "HELLO" completion item to the values of the properties files
  • FileOpenedListener shows a popup when a file is opened in the editor
  • ApplicationHelloService and ProjectHelloService show examples of IJ platform service components
  • MyToolWindowFactory creates a new ToolWindow at the bottom of the window

sbt-idea-example's People

Contributors

marcodaniels avatar mutcianm avatar unkarjedy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.