Kotlin Support in Fleet: Explore a New IDE from JetBrains
In this blog post, we’d like to tell you more about the current state of Kotlin support in the Fleet Public Preview, including an overview of the different capabilities of the IDE for Kotlin projects.
Fleet has been built from the ground up based on our many years of experience in IDE development. It combines the simplicity and speed of a lightweight text editor with the transformative power of an intelligent development environment.
Fleet is not designed to replace or replicate JetBrains’ existing IDEs. The main idea behind Fleet is to give developers a new experience with a smart, polyglot tool and workflows such as distributed and collaborative development and the use of generative AI for coding. JetBrains is working on Fleet while continuing to develop its existing IDEs.
Available features for Kotlin in Fleet Smart Mode
Kotlin is supported out of the box in Fleet, making working with the language not only productive and simple, but also enjoyable. It provides a streamlined experience for Kotlin developers. When you want to quickly dive into your project, analyze its structure, and make targeted edits in no time, you can use Fleet as an editor. But when need arises for more robust functionalities, it can transform into a full-fledged IDE.
If you want to enable code intelligence features in Kotlin, you should turn on Smart Mode. These additional features help you avoid mistakes while writing your code faster and more productively.
Once Smart Mode is enabled, you get access to the code editing features that IntelliJ IDEA users know and love, including:
- Code completion
- Code actions
- Type and parameter information
- Live templates
- Code generation
Let’s take a closer look at these features and how they can streamline your coding routine.
While you are typing, Fleet provides suggestions for completing your code based on various factors like available code intelligence services, the project structure, surrounding code, and symbol visibility.
The completion suggestions appear either automatically or when you manually activate them by pressing Ctrl+Space.
Thanks to continuous code quality analysis, you can make informed decisions and enhance the efficiency of your coding process. Fleet suggests actions tailored to the specific context you’re working in. These suggestions encompass actions ranging from correcting errors to refactoring the code at the caret.
You can check which actions are available at the caret by pressing Opt+Enter (on macOS) or Alt+Enter (on Windows and Linux).
Once you have decided which action to use, you can either apply it right away or preview the result with a shortcut: Cmd+P on macOS, Ctrl+P on Windows and Linux.
If you are not sure what type you are currently dealing with, you can easily find out by pressing Cmd+Shift+T (on macOS) or Ctrl+Shift+T (on Windows and Linux).
This will prompt Fleet to show you the details about the static type of the symbol or expression.
Are you using a method that has numerous overloads, or do you need to quickly find the necessary parameters? Navigate through the available options simply by pressing Cmd+I (on macOS) or Ctrl+I (on Windows and Linux).
Fleet provides a set of Kotlin live templates you can use to insert common constructs into your code, such as loops, conditions, declarations, or print statements. Unlike IntelliJ IDEA, Fleet doesn’t allow you to create new templates. However, you can use the many pre-made templates with your Kotlin code. Check out the complete list of live templates in the Fleet documentation.
When you start typing a particular method or statement, Fleet suggests possible completion options based on the context and existing code. Simply select a suggestion to instantly generate the required code. You can take advantage of code completion to override superclass members like equals(), hashcode(), and other methods.
By using code generation, you can save time and make sure that your code follows the correct syntax and structure, as Fleet helps you generate the necessary code snippets.
Give Fleet a try and share your experience
Fleet is a polyglot code editor and IDE that supports Kotlin among many other languages. You can think of Fleet as a multipurpose tool and expect dedicated support for specific types of projects to come later.
If you are curious and see a use for a good new tool in your arsenal, we invite you to try Fleet for yourself and explore its capabilities!
The easiest way to download and get started with Fleet is by using the free JetBrains Toolbox App.
Fleet is still in the Preview stage and is being actively developed. Your feedback and thoughts on the product will help the JetBrains team stabilize and improve it. If you encounter any issues, please submit reports to this issue tracker. You can also get in touch with us at email@example.com or @jetbrains_fleet.
Stay tuned for upcoming announcements!
What else to read and watch:
Subscribe to Blog updates
Thanks, we've got you!
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 Dataframe 0.9.1 released!
It's time for another Kotlin Dataframe update to start off the new year.There have been a lot of exciting changes since the last 0.8.0 preview release. So without any further ado, let's jump right in! TL;DR: OpenAPI type schemas can now be parsed and converted into data schemas.New JSON readin…
KotlinDL 0.5 Has Come to Android!
Version 0.5 of our deep learning library, KotlinDL, is now available! This release focuses on the new API for the flexible and easy-to-use deployment of ONNX models on Android. We have reworked the Preprocessing DSL, introduced support for ONNX runtime execution providers, and more. Here's a summ…