Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to write an IntelliJ plugin using Scala? [duplicate]

Pretty straightforward: I'm allergic to Java but want to write a plugin for IntelliJ. Is this possible?

It wants me to set up a project SDK, but it only allows for Java SDKs, not Scala. Since they both run in JVM, I don't see why using Scala would be a problem.

like image 807
sircodesalot Avatar asked Jan 23 '14 02:01

sircodesalot


People also ask

Can we use Scala in IntelliJ?

To start working with Scala in IntelliJ IDEA you need to download and enable the Scala plugin. If you run IntelliJ IDEA for the first time, you can install the Scala plugin when IntelliJ IDEA suggests downloading featured plugins. Otherwise, you can use the Settings | Plugins page for the installation.

What is Scala plugin?

The Scala plugin extends the Java plugin to add support for Scala projects. It can deal with Scala code, mixed Scala and Java code, and even pure Java code (although we don't necessarily recommend to use it for the latter).


1 Answers

Scala plugin for IntelliJ IDEA has 85% Scala code, so yes it's possible. You can take a look for our configuration: https://github.com/JetBrains/intellij-scala Together with setup description you will be able to setup plugin development for your plugin: http://confluence.jetbrains.com/display/SCA/Setting+up+Scala+plugin+project+in+IntelliJ+IDEA

like image 87
Alefas Avatar answered Nov 09 '22 01:11

Alefas