IntelliJ IDEA Goes LSP: Java and Kotlin Intelligence Comes to VS Code, Cursor, and Agentic Flows

IntelliJ IDEA Goes LSP: Java and Kotlin Intelligence Comes to VS Code, Cursor, and Agentic Flows

IntelliJ IDEA 拥抱 LSP:为 VS Code、Cursor 和智能体工作流带来 Java 与 Kotlin 智能支持

It’s no secret that agentic development is changing how developers build software. As agents take on more and more of the implementation work, developers spend less and less time manually editing code. For this manual work, they might only need a basic, narrow set of features that IDEs provide, like navigating to declarations, finding references, some simple code completion, or renaming. These features are generally covered by the Language Server Protocol (LSP), which allows programming language support to be implemented once and then reused by any LSP-capable IDE or editor. Even agents can make use of LSP servers today, leading to faster and more deterministic results and, eventually, reduced token consumption.

众所周知,智能体(Agentic)开发正在改变开发人员构建软件的方式。随着智能体承担了越来越多的实现工作,开发人员手动编写代码的时间越来越少。对于这些手动工作,他们可能只需要 IDE 提供的一套基础且精简的功能,例如跳转到定义、查找引用、简单的代码补全或重命名。这些功能通常由语言服务器协议(LSP)涵盖,该协议允许编程语言支持只需实现一次,即可被任何支持 LSP 的 IDE 或编辑器复用。如今,即使是智能体也可以利用 LSP 服务器,从而获得更快、更确定的结果,并最终减少 Token 的消耗。

In response to these changes, we’ve been working hard at JetBrains to offer IntelliJ IDEA’s smart language features for Java and Kotlin in an LSP format. Today, we’re happy to announce that IntelliJ IDEA’s Java and Kotlin intelligence is available in a preview extension for third-party editors, starting with VS Code and its forks (such as Cursor). We have also been running internal trials and experiments with a select few external customers, and the results have shown that the same LSP functionality can significantly improve terminal-based agentic workflows, like with Claude Code or Codex. We will share the very promising results of these experiments soon.

为了应对这些变化,JetBrains 一直在努力以 LSP 格式提供 IntelliJ IDEA 的 Java 和 Kotlin 智能语言功能。今天,我们很高兴地宣布,IntelliJ IDEA 的 Java 和 Kotlin 智能支持已作为预览版扩展提供给第三方编辑器,首批支持 VS Code 及其分支(如 Cursor)。我们还与少数外部客户进行了内部试验和实验,结果表明,相同的 LSP 功能可以显著改善基于终端的智能体工作流(例如 Claude Code 或 Codex)。我们很快将分享这些实验中非常令人振奋的结果。

Introducing the VS Code extension

介绍 VS Code 扩展

The Java & Kotlin by IntelliJ IDEA extension is now available, powered by IntelliJ IDEA’s Java and Kotlin language technology. It brings a focused set of capabilities to VS Code-based editors, including:

  • Java, Kotlin, and mixed-language project support.
  • Smart code completion, navigation, and code analysis.
  • Refactorings and editor assistance.
  • Support for Maven, Gradle, and Bazel.
  • Fast and reliable performance, even for large projects and monorepos.

“Java & Kotlin by IntelliJ IDEA”扩展现已发布,它由 IntelliJ IDEA 的 Java 和 Kotlin 语言技术驱动。它为基于 VS Code 的编辑器带来了一系列核心功能,包括:

  • 支持 Java、Kotlin 及混合语言项目。
  • 智能代码补全、导航和代码分析。
  • 重构和编辑器辅助功能。
  • 支持 Maven、Gradle 和 Bazel。
  • 即使在大型项目和单体仓库(monorepo)中也能保持快速且可靠的性能。

Getting started

入门指南

You can install the Java & Kotlin by IntelliJ IDEA extension from the Visual Studio Marketplace and the Open VSX registry. After installation, open your Java or Kotlin projects in VS Code or Cursor. The extension will start analyzing your projects, import the ones that have Maven, Gradle, or Bazel build files, and then enable Java and Kotlin language features in the editor for you.

您可以从 Visual Studio Marketplace 和 Open VSX 注册表安装“Java & Kotlin by IntelliJ IDEA”扩展。安装完成后,在 VS Code 或 Cursor 中打开您的 Java 或 Kotlin 项目。该扩展将开始分析您的项目,导入包含 Maven、Gradle 或 Bazel 构建文件的项目,并为您启用编辑器中的 Java 和 Kotlin 语言功能。

Compatibility notice

兼容性说明

Java & Kotlin by IntelliJ IDEA includes code analysis features and quick-fixes that overlap with Red Hat’s and Oracle’s extensions for Java. To avoid confusion, we recommend disabling those extensions while testing.

“Java & Kotlin by IntelliJ IDEA”包含的代码分析功能和快速修复功能与 Red Hat 和 Oracle 的 Java 扩展存在重叠。为避免冲突,我们建议在测试期间禁用这些扩展。

Licensing

许可协议

During the preview phase, the extension is free to use. We publish new builds every 2 weeks. Each build renews the evaluation period and is limited to 30 days. After the preview period, using the extension will require an IntelliJ IDEA Ultimate subscription. The same license will let you use IntelliJ IDEA’s Java and Kotlin capabilities whether you are working in the IntelliJ IDEA desktop IDE, in VS Code-based editors, or in other supported environments.

在预览阶段,该扩展可免费使用。我们每两周发布一次新版本。每个版本都会更新评估期,有效期为 30 天。预览期结束后,使用该扩展将需要 IntelliJ IDEA Ultimate 订阅。无论您是在 IntelliJ IDEA 桌面版 IDE、基于 VS Code 的编辑器还是其他受支持的环境中工作,同一个许可证都允许您使用 IntelliJ IDEA 的 Java 和 Kotlin 功能。

What’s next

未来展望

The VS Code extension is just one milestone in a longer development journey to bring the intelligence of IntelliJ IDEA to our users wherever they are. We strongly believe the best way to do Java and Kotlin development is inside IntelliJ IDEA. At the same time, we recognize that teams may have practical reasons to work in other environments, with other editors and tools. Wherever you choose to work, we want you to benefit from IntelliJ IDEA’s Java and Kotlin intelligence. To this end, we’re already working on supporting fully agentic, terminal-based workflows. In the near future, we’ll share our initial results (think: reduced token consumption), and we’ll give you a chance to try out our agent plugins when they’re ready.

VS Code 扩展只是我们漫长开发旅程中的一个里程碑,旨在将 IntelliJ IDEA 的智能带给身处任何地方的用户。我们坚信,进行 Java 和 Kotlin 开发的最佳方式是在 IntelliJ IDEA 内部。同时,我们也认识到团队可能出于实际原因需要在其他环境中使用其他编辑器和工具。无论您选择在哪里工作,我们都希望您能从 IntelliJ IDEA 的 Java 和 Kotlin 智能中受益。为此,我们已经在致力于支持完全基于终端的智能体工作流。在不久的将来,我们将分享初步成果(例如:减少 Token 消耗),并在插件准备就绪时让您有机会试用我们的智能体插件。

Feedback and support

反馈与支持

We are eager to hear what you think. Please share feedback with us about what works well, what doesn’t, and which capabilities you would like to see next. You can leave a comment here or submit a request to us. Your feedback during this preview phase will directly shape the extension as we move toward a stable 1.0 release.

我们非常期待听到您的想法。请与我们分享哪些功能表现良好,哪些尚需改进,以及您接下来希望看到哪些功能。您可以在此处发表评论或向我们提交请求。在预览阶段,您的反馈将直接影响我们迈向 1.0 稳定版的开发方向。