CLion 2023.2 EAP4: AI Assistant
The CLion 2023.2 Early Access Program is up and running, bringing many of the exciting improvements and changes planned in our roadmap. But today we have something special! This week’s EAP builds for all IntelliJ-based IDEs, as well as our tools for .NET, include a major new feature: an AI Assistant.
Our approach to building the AI Assistant feature in JetBrains tools focuses on two main aspects:
- Weaving the AI assistance into the core IDE user workflows.
- Building a deep integration of AI features with the code understanding, which has always been a strong point of JetBrains IDEs.
You can find more information about the JetBrains AI service and tips on how to use any of the AI features in this blog post.
Let’s see how this can be applied to your C and C++ development with CLion!
The AI Assistant prefers programming topics, benefits from project-specific context, and knows quite a bit. So why not have a chat with it? Iterate in the new dedicated tool window. Once you’re happy with the result, use Insert Snippet at Caret to put the AI-generated code in the editor, or just copy it over manually.
AI Actions… menu
To ask the AI about a specific code fragment, select it in the editor and invoke an action from the AI Actions… menu. You can ask the AI Assistant to explain the selected code, suggest how it’s better to refactor the selected code fragment, or find potential problems.
For example, let’s ask the AI Assistant to help us find a bug in the test:
Code can be complex at first glance, so why not to ask the AI Assistant to explain it:
Commit Message Generation
Let the AI Assistant help you describe the changes you made. Pressing the Generate Commit Message with AI Assistant button in the commit message dialog will send the diffs of your changes to the LLM, and it will generate a commit message describing your changes.
Explain CMake errors
When CMake execution fails on your project, press Explain with AI in the CMake tool window to get a better understanding what has gone wrong and how to fix it:
For Python code in CLion, you can also benefit from the Generate documentation action and name suggestions from the AI Assistant when renaming symbols.
Please send us your ideas and suggestions by clicking Share feedback in the AI Assistant tool window, and report AI Assistant bugs in YouTrack. Thank you!
Access to AI Features
Accessing the AI features requires logging in to the JetBrains AI service with your JetBrains account. Please note that JetBrains AI service may not be available for everyone immediately. More details can be found in this blog post.
Build 232.8296.18 is available from our website, via the Toolbox App, or as a snap package if you are using Ubuntu. Update via patch if you are using the previous EAP build.
Your CLion team
The Drive to Develop
Subscribe to Blog updates
Thanks, we've got you!
CLion 2023.3 Release Candidate
CLion 2023.3 is on its way, and the release candidate for v2023.3 is already available! To install CLion 2023.3 RC (build 233.11799.171), download it from the website, update via the Toolbox App, or use this snap package (for Ubuntu). You need an active subscription or a trial license to use CLi…
CLion Nova: A New Update With Various Bug Fixes
CLion Nova, a free preview of CLion with the ReSharper C++/Rider C++ language engine, was announced recently. We’re excited to see how well you liked the first build! There are about 3,700 users right now and the overall feedback is mostly positive, especially that which is related to performance an…
CLion 2023.3 Goes Beta
The Beta version of CLion Classic 2023.3 is now available with key improvements and changes that are expected in the upcoming release. Download build 233.11799.37 from our website, via the Toolbox App, or as a snap package for Ubuntu. If you are using CLion Nova, note that we do not plan to release…
CLion Nova Explodes onto the C and C++ Development Scene
TL;DR Today, we’re announcing a free early preview of CLion, which uses the ReSharper C++/Rider C++ language engine instead of the CLion "legacy" engine. The Preview build is available via our dedicated Toolbox App feed. At some point in 2024, depending on the results of the feedback coll…