Chat with AI
This functionality relies on the AI Assistant plugin that requires an additional license.
For more information, refer to JetBrains AI Service licensing and Enable AI Assistant plugin.
Use the AI Assistant tool window to have a conversation with the LLM (Large Language Model), ask questions about your project, or iterate on a task.
The AI Assistant takes into consideration the language and technologies used in your project, as well as local changes and version control system commits. You can search for files, classes, and element usages.
Click
AI Assistant on the right toolbar to open AI Assistant.
In the input field, type your question and press Enter to submit your query.
tip
Each generated code snippet or a selected fragment within it can be quickly inserted into the editor at the caret position by clicking
in its top right corner.
AI Assistant keeps the chats during one IDE session. You can find the saved chats in the All Chats list.
![All Chats list All Chats list](https://resources.jetbrains.com/help/img/idea/2023.3/ai_all_chats.png)
Names of the chats are generated automatically and contain the summary of the initial query.
If you want AI Assistant to provide you with a bit more precise answers, you can enable the smart chat mode in Settings | Tools | AI Assistant.
![Enable smart mode option in the settings Enable smart mode option in the settings](https://resources.jetbrains.com/help/img/idea/2023.3/ai_enable_smart_mode.png)
With this option enabled, AI Assistant might send additional details, such as file types, frameworks used, and any other information that may be necessary for providing context to the LLM.
note
Learn more about data sharing from How we handle your code and data.
Thanks for your feedback!