Kotlin NetBeans plugin beta is out!

Kotlin NetBeans plugin beta is out!

Dmitry Jemerov

Today we are happy to present the first BETA release of the Kotlin plugin for the NetBeans IDE.

The main features are:

  • Building and Running Your Code
  • Maven and Ant Support
  • Java Interoperability
  • Code Highlighting
  • Diagnostics
  • Code Completion
  • Navigation
  • Debugging
  • Unit Testing
  • Auto-Import
  • Mark Occurrences
  • Quick Search
  • Code Formatting

Installation

To give it a try you will need an installation of NetBeans 8.1. The beta version of Kotlin plugin is available from the NetBeans Plugin Portal.

Installation process:

  1. Download Kotlin plugin
  2. Launch NetBeans IDE
  3. Choose Tools and then Plugins from the main menu
  4. Switch to Downloaded tab
  5. On the Downloaded tab click Add Plugins... button
  6. In the file chooser, navigate to the folder with downloaded plugin. Select the NBM file and click OK. The plugin will show up in the list of plugins to be installed.
  7. Click Install button in the Plugins dialog
  8. Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button.

Using Kotlin in NetBeans

To start using Kotlin in NetBeans you could create a new Java project (Maven- or Ant-based) or open an existing one. You can mix Java and Kotlin freely, Java classes are accessible from Kotlin and vice versa. At the moment plugin supports Kotlin 1.0.3.

Here is a quick overview of the features.

Diagnostics

diagnostics

Code Completion

completion

Navigation

From Kotlin to Kotlin:

navigationk2k

From Kotlin to Java:

navigationk2j

From Java to Kotlin:

navigationj2k

Debugging

You can

  • Set breakpoints
  • Use Step in/out/over
  • View local variables and contents of Kotlin objects

debugging

Unit Testing

To write tests in Kotlin you should have JUnit in the classpath of your project.

junit

Auto-Import

autoimport

Mark Occurrences

occurrences

Quick Search

quicksearch

Feedback Welcome

Your feedback is very important. Feel free to add issues and feature requests in the plugin issue tracker.

Just like Kotlin itself, the NetBeans plugin is an open-source project, so your contributions can help it evolve faster.