Files
tldr/pages.zh/common/idea.md

699 B

idea

JetBrains Java 和 Kotlin IDE。 更多信息:https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html

  • 在 IntelliJ IDEA 中打开当前目录:

idea {{path/to/directory}}

  • 在 IntelliJ IDEA 中打开特定文件或目录:

idea {{path/to/file_or_directory}}

  • 打开差异查看器以比较最多 3 个文件:

idea diff {{path/to/file1 path/to/file2 path/to/optional_file3}}

  • 打开合并对话框以执行双向文件合并:

idea merge {{path/to/file1}} {{path/to/file2}} {{path/to/output}}

  • 对项目运行代码检查:

idea inspect {{path/to/project_directory}} {{path/to/inspection_profile}} {{path/to/output}}