The 2024.1 versions of JetBrains IDEs introduced the new terminal as an opt-in feature, which can be enabled via Settings/Preferences | Tools | Terminal | Enable New Terminal. While we are actively gathering feedback and working on improvements, the new terminal remains in its Beta version. In the previous post, we covered the significant changes made to the terminal for the initial launch. This post will focus on the updates and enhancements introduced in the 2024.2 versions of JetBrains IDEs.

AI-powered command generation

The new terminal now features AI-powered command generation capabilities. Users of JetBrains AI Assistant can generate commands with AI directly within the terminal. To use this feature, switch to AI mode in the terminal by pressing ⌘\ (macOS) or Ctrl+\ (Windows and Linux), describe your command in natural language, and then submit the request. AI Assistant will create the corresponding command, which will appear in the prompt for immediate execution or further editing. Considering previous commands and their outputs, the OS, and the shell, the AI command generation in the new terminal is context-aware, improving the accuracy of the results.

AD 4nXdYCYocMUTaIx7QDw4w7NeSG97974tVu 8I8Ij2Wc1R5KloVOljYJODpDi95KzDgOwT3Zj 9UhknVHfeM7 Bh3UXJbrd2A zJ3kPuCf8hOlHtc6NdOGA0Zu638o9n5Kd9zCG6zeVDJHLy 5d52LyFGcvuZ?key=cVuKTSCWP48mi MSmH2iA

Moreover, the history in AI mode now displays a list of previously executed AI requests. This can be particularly helpful when you want to edit and re-run previous requests to generate new commands.

AD 4nXddqixOfhqcfKTCr9aVzpefpOc8Yzf2HmXcC6lVgYQNCfdxPNlI1v2SVRRdRoL994KJ5fDKi8Ybf5d4ZHZo 55q8i1ge93sIrhWJ J16AAsjEnOq4laX95 it1bvk8BZ

Looking ahead, we plan to expand the terminal’s AI feature set. Upcoming enhancements will include the ability to fix commands that failed and explain outputs.

Prompt customization

The new terminal now includes enhanced prompt customization options. You can choose between single-line and double-line prompt settings via Settings/Preferences | Tools | Terminal | Enable New Terminal | Prompt style. This allows for more efficient use of space or improved readability, depending on your personal preference. 

Additionally, we have addressed a common user request by adding the ability to enable the prompt settings configured in a shell. You can now use the new terminal with the same familiar prompt as your system terminal. Please report any prompt customization problems on this YouTrack issue.

AD 4nXedLcJmCI30aDO4qYfgIXhUVY7nW6Grku9VUu

Enhanced command completion

We are continuously working on improving command completion. In the 2024.2 release, you will notice enhancements in the following areas:

If you encounter any issues, please report them through the tickets linked above or create a new one on YouTrack. As we continue to work on improving the new terminal, we’d appreciate your feedback in the comments section below.

Thank you!

image description

Share.
Leave A Reply