JetBrains IDEs add AI-powered code autocompletion

JetBrains IDEs introduce full line code completion using a built-in language model, starting with the 2024.1 versions.

shutterstock 637037008 underside of jet aircraft and jet turbines on runway
frank_peters / Shutterstock

JetBrains has added full-line code autocompletion to its family of IDEs (integrated development environments), powered by locally run AI models. Full line code complеtion is available for Java, Kotlin, Python, JavaScript, TypeScript, CSS, PHP, Go, and Ruby with the 2024.1 versions of the respective IDEs.

The April 4 launch provides the company’s IDEs with a seamless, full-line code completion experience, JetBrains said. This functionality ensures that data processing and analysis occur directly on the user’s device, resulting in quick code completion with minimal latency, according to JetBrains.

Full-line code completion is included within JetBrains IDEs including IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, GoLand, and RubyMine. In upcoming months, the company plans to extend this functionality to C#, Rust, and C++ in all JetBrains IDEs supporting these languages, including Rider, RustRover, Clion, and Nova.

The 2024.1 versions of the JetBrains IDEs are set to introduce multiple other features including:

  • An overhauled terminal featuring both visual and functional enhancements to streamline command-line tasks. The new terminal enables smooth navigation within blocks, nesting each command separately, a command line completion feature, and access to command history.
  • IntelliJ IDEA supports newly released Java 22 and includes a new Kotlin K2 mode based on the K2 Kotlin compiler. The K2 compiler brings advanced and more stable code analysis, and will be the only compiler to support future Kotlin features.
  • RubyMine, for Ruby on Rails development, now can execute version control commands in the context of the current project’s local SDK. When using Git, all scripts will use the specific Ruby SDK associated with the project. The RubyMine update also brings support for Debase 3.0 in combination with Ruby 3.3 for debugging.
  • GoLand, for Go development, now has data flow analysis out of beta. This means inspections can focus on various code problems that might lead to runtime issues, security breaches, and other vulnerabilities. Also, performance is improved for highlighting and indexing.
  • PyCharm, for Python development, adds full line code completion for JavaScript and TypeScript as well as Python, in-editor code review for GitHub and GitLab, and quick documentation previews for Hugging Face models and data sets.
  • PhpStorm, for PHP, supports the Symfony AssetMapper. Developers can install missing modules and packages via importmap.php and use autocompletion for classes and methods. Pest tests can be generated for PHP classes and methods. PhpStorm also supports running tests via PHPUnit 11.

While full-line code completion helps with generating a full line of code, JetBrains AI Assistant, a separate plugin and subscription available for JetBrains IDEs, can autocomplete entire blocks of code, JetBrains said. AI Assistant also offers updates with improved test generation and cloud code completion.

Copyright © 2024 IDG Communications, Inc.