Chat with AI
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.
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.
Start a new chat
Click
to open AI Assistant.In the input field, type your question and press ⏎ to submit your query.
If you have a piece of code selected in the editor tab, use
/explain
and/refactor
commands to save time when typing your query.If you want to attach a particular file or function to your query to provide more context, use
#
:#thisFile
refers to the currently open file.#localChanges
refers to the uncommitted changes.#file:
invokes a popup with selection of files from the current project. You can select the necessary file from the popup or write the name of the file (for example,#file:Foo.md
) .#symbol:
adds a symbol into prompt (for example,#symbol:FieldName
).
Click Regenerate this response at the beginning of the AI Assistant's answer to get a new response to your question.
Ask about the selected code or the opened file
You can ask the AI Assistant questions about some particular code in your file or about all the code in the file.
Ask about This File: right-click any place in the opened file and navigate to . Alternatively, to open the popup with AI Assistant actions, press ⌥ ⏎.
Ask about This Code: select code in the file and navigate to . Alternatively, to open the popup with AI Assistant actions, press ⌥ ⏎.
In the query field, type your question about the code or file.