Xem thêm

IntelliJ IDEA 2024.1 EAP 2: Terminal Redefined, Enhanced Code Coverage, and More

CEO Tinh Phung
IntelliJ IDEA has released the second EAP build of IntelliJ IDEA 2024.1, packed with exciting updates for developers. This latest build delivers an updated Terminal tool window, enhanced code coverage, and more. Let's dive in...

IntelliJ IDEA has released the second EAP build of IntelliJ IDEA 2024.1, packed with exciting updates for developers. This latest build delivers an updated Terminal tool window, enhanced code coverage, and more. Let's dive in and explore the fantastic features of this new release.

Rediscover a New Terminal Experience

The IntelliJ IDEA 2024.1 EAP 2 introduces a redesigned Terminal tool window that offers both visual and functional enhancements, making terminal-based tasks simpler and more convenient. This update not only improves the tool visually but also expands its feature set.

The new Terminal tool window seamlessly integrates with the IDE's refreshed look-and-feel, showcasing a new color scheme that enhances readability. Each command is now presented in a distinct block, allowing for easy identification of the start and end of each command. Navigating between blocks is a breeze using arrow keys or switch focus between the prompt and output using keyboard shortcuts.

IntelliJ IDEA Terminal The reworked Terminal in IntelliJ IDEA 2024.1 EAP 2

Moreover, the updated Terminal introduces code completion for commands, paths, arguments, options, and more. This feature simplifies command entry, making it more intuitive and efficient.

We've also introduced a convenient command history with filtering options, making it a breeze to navigate through recently executed commands.

Please note that the updated Terminal currently supports Bash, Zsh, and PowerShell (currently only for Windows 11), with more shell integrations in the works.

Improved Code Coverage

In IntelliJ IDEA 2024.1 EAP 2, code coverage settings have been moved from the Run Configuration popup to the main IDE settings. Now, you can easily update coverage settings for all test run configurations in one place. This eliminates the need to individually update each configuration, saving you valuable time.

For comprehensive test coverage, this update focuses on identifying conditional statements in your code that are not fully covered by tests. IntelliJ IDEA now highlights uncovered conditions, as well as any conditional branches or variable values that are not covered. This simplifies the process of improving your tests. You can enable or control this feature in Settings/Preferences | Build, Execution, Deployment | Coverage.

Code Coverage Improved code coverage settings in IntelliJ IDEA 2024.1 EAP 2

Additionally, it's now easier than ever to import, browse, and analyze code coverage data gathered in CI/CD systems by the JaCoCo runner directly in the IDE. You'll find a direct link for importing JaCoCo reports in the Coverage tool window if no reports are displayed there. Simply click the import icon in the toolbar to retrieve the JaCoCo report as an .exec file.

JaCoCo Import Importing JaCoCo reports made easy in IntelliJ IDEA 2024.1 EAP 2

These are just a few of the notable updates in the latest release. To view the full list of implemented changes, consult the release notes.

Try out these exciting new features and share your thoughts with us in the comments below or on X (formerly Twitter). If you encounter any bugs, please report them via our issue tracker.

Happy developing with IntelliJ IDEA 2024.1 EAP 2!

1