Kotlin Eclipse Plugin 0.3.0
We are happy to announce Kotlin Eclipse Plugin version 0.3.0. This release is loaded with new features:
- Kotlin M13 support
- Find references
- Parameter hints
- Select enclosing/next/previous element
- Override/Implement action
- Body conversion intention
- Debugger: Run to cursor
- Debugger: Step into selection
- Better performance
A very common task in daily activity of any developer is looking up references to a function, property or class all over the project. Find References in 0.3.0 searches through usages of Kotlin declarations in both Java and Kotlin code. And running Find References for a Java declaration reveals usages in Kotlin too! The same
Ctrl+Shift+G / ⇧⌘G shortcut works for both languages.
Kotlin Eclipse plugin now supports parameter hints. To look up the order of function parameters or their names and types, place the cursor inside the parentheses and press
Ctrl+Shift+Space / ⇧⌃Space to see a hint.
Select Enclosing Element
Some IDE features proved to be really addictive, and once accustomed, you will always miss them if they are not present. A good example is a Select Enclosing Element. It’s far more convenient to select “function arguments”, “statement”, “function body” or “whole class” instead of thinking where should selection begin and end.
Please note that Select Next/Previous element actions are also supported for Kotlin.
Since 0.3.0 Kotlin Eclipse plugin can help in resolving a very frequent “not implemented” error. Quick Fix menu (
Ctrl + 1 / ⌘1) has an Implement Members item that will generate all missing declarations after selection.
It’s also possible to call Override/Implement Members and select methods you want to implement as a separate action from Quick Access (
Ctrl + 3 / ⌘3).
Body Conversion Quick-Fix
Kotlin allows you to declare methods in a really short way, and now Eclipse can to convert one form to another with a quick fix (
Ctrl + 1 / ⌘1).
Several important debugger features are ready to be tried out.
Run To Line
While debugging your program it’s a very common task to skip some code and stop the execution an particular line. This is very much like a “one-time breakpoint”, but removing a breakpoint right after hitting it is tedious. This is why debuggers have Run To Line (
Ctrl + R / ⌘R) feature which is now also supported for Kotlin code.
Step Into Selection
It’s often not enough to debug in terms on lines. Imagine the situation when there’re several calls in one line and you want to skip two of them but wonder what the third function does. Instead of cycling through Step-Into, Step-Out actions it’s better to hit Step Into Selection (
Ctrl + F5 / ⌥ F5) action.
This release has a significant boost in performance of build and completion on board.
While it might seem that we choose features for release at random it’s not exactly so :) Actually we are gradually addressing problems we have in our project with the percentage of Kotlin code growing and pretty happy with the result.
If you have an idea what feature should be implemented next, please create an issue in our tracker.
Have a nice Kotlin in Eclipse!
Subscribe to Blog updates
Thanks, we've got you!
Kotlin 1.9.0 Released
Kotlin 1.9.0 has been released! Highlights include: Kotlin K2 for JVM is in Beta, other K2 compiler updates, new enum class values function, new operator for open-ended ranges, preview of Gradle configuration cache in Kotlin Multiplatform, changes for Android target support in Kotlin Multiplatform, preview of custom memory allocator in Kotlin/Native. Learn more!
Introducing Kotlin Notebook
The first experimental version of the Kotlin Notebook plugin for IntelliJ IDEA is now available! This post will offer insight into the plugin’s functionality and use cases, but before launching into that, we’d like to let the plugin speak for itself: https://youtu.be/2PLYlDJPelQ W…
Kotlin 1.8.20 Released
Kotlin 1.8.20 has been released! Highlights include: Kotlin K2 compiler updates, AutoCloseable interface and Base64 encoding in stdlib, new JVM incremental compilation enabled by default, new Kotlin/Wasm compiler backend. Learn more!