intellij

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

IntelliJ IDEA

IntelliJ IDEA

IntelliJ IDEA is the premier IDE for Java and Kotlin. v2025.1 introduces Java 24 support, K2 Mode (Beta/Stable), and a unified AI Assistant.
IntelliJ IDEA是Java和Kotlin开发的首选IDE。2025.1版本新增了Java 24支持、K2模式(测试版/稳定版)以及统一的AI助手

When to Use

适用场景

  • Java/Kotlin: Unbeatable refactoring and static analysis.
  • Spring Boot: Deep understanding of Spring beans and endpoints.
  • Large Monorepos: Indexing is smarter and incremental.
  • Java/Kotlin开发:无可匹敌的重构与静态分析能力。
  • Spring Boot开发:深度理解Spring Bean与端点。
  • 大型单体仓库:索引更智能、支持增量更新。

Core Concepts

核心概念

Indexing

索引功能

IntelliJ builds a massive index of your code. This enables "Find Usages" to be instant and 100% accurate.
IntelliJ会为你的代码构建一个庞大的索引,这使得“查找引用”功能能够瞬间完成且100%准确。

Intentions (Alt+Enter)

意图操作(Alt+Enter)

The magic key. Fixes warnings, optimizes imports, converts Java to Kotlin.
这是一个神奇的快捷键,可修复警告、优化导入、将Java代码转换为Kotlin代码。

Run Configurations

运行配置

Powerful system to launch apps, tests, and docker containers.
强大的系统,可用于启动应用、测试以及Docker容器。

Best Practices (2025)

2025年最佳实践

Do:
  • Enable K2 Mode: If using Kotlin, the new frontend compiler is much faster.
  • Use "Search Everywhere": Double-shift (
    Shift-Shift
    ) finds files, classes, actions, and settings.
  • Share Run Configs: Check
    .run/
    configurations into Git so the team shares launch setups.
Don't:
  • Don't disable indexing: Let it finish. The IDE is dumb without it.
建议
  • 启用K2模式:如果你使用Kotlin,新的前端编译器速度会快很多。
  • 使用“随处搜索”:双击Shift键(
    Shift-Shift
    )可查找文件、类、操作和设置。
  • 共享运行配置:将
    .run/
    目录下的配置提交到Git,以便团队共享启动设置。
不建议
  • 不要禁用索引:让它完成索引构建,没有索引的IDE功能会大打折扣。

References

参考资料