Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Latest commit

 

History

History
354 lines (205 loc) · 9.37 KB

Kotlin NetBeans plugin beta is out!.md

File metadata and controls

354 lines (205 loc) · 9.37 KB
title date author tags keywords categories reward reward_title reward_wechat reward_alipay source_url translator translator_url
Kotlin NetBeans plugin beta is out!
2016-09-19 11:42:00 -0700
Dmitry Jemerov
官方动态
false
Have a nice Kotlin!

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

  • Maven and Ant Support

Java Interoperability

Code Highlighting

Diagnostics

Code Completion

Navigation

Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Java Interoperability

Code Highlighting

Diagnostics

Code Completion

Navigation

Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Code Highlighting

Diagnostics

Code Completion

Navigation

Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Diagnostics

Code Completion

Navigation

Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Code Completion

Navigation

Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Navigation

Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Debugging

Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Unit Testing

Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Auto-Import

Mark Occurrences

Quick Search

Code Formatting

  • Mark Occurrences

Quick Search

Code Formatting

  • Quick Search

Code Formatting

  • Code Formatting

{% raw %}

{% endraw %}

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

Launch NetBeans IDE

Choose Tools and then Plugins from the main menu

Switch to Downloaded tab

On the Downloaded tab click Add Plugins… button

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.

Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button.

  1. Launch NetBeans IDE

Choose Tools and then Plugins from the main menu

Switch to Downloaded tab

On the Downloaded tab click Add Plugins… button

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.

Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button. 2. Choose Tools and then Plugins from the main menu

Switch to Downloaded tab

On the Downloaded tab click Add Plugins… button

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.

Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button. 3. Switch to Downloaded tab

On the Downloaded tab click Add Plugins… button

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.

Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button. 4. On the Downloaded tab click Add Plugins… button

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.

Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button. 5. 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.

Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button. 6. Click Install button in the Plugins dialog

Complete the installation wizard by clicking Next, agreeing to the license terms and clicking Install button. 7. 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

{% raw %}

diagnostics

{% endraw %}

Code Completion

{% raw %}

completion

{% endraw %}

Navigation

From Kotlin to Kotlin:

{% raw %}

navigationk2k

{% endraw %}

From Kotlin to Java:

{% raw %}

navigationk2j

{% endraw %}

From Java to Kotlin:

{% raw %}

navigationj2k

{% endraw %}

Debugging

You can

  • Set breakpoints

Use Step in/out/over

View local variables and contents of Kotlin objects

  • Use Step in/out/over

View local variables and contents of Kotlin objects

  • View local variables and contents of Kotlin objects

{% raw %}

debugging

{% endraw %}

Unit Testing

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

{% raw %}

junit

{% endraw %}

Auto-Import

{% raw %}

autoimport

{% endraw %}

Mark Occurrences

{% raw %}

occurrences

{% endraw %}

Quick Search

{% raw %}

quicksearch

{% endraw %}

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.