ReSharper 2023.3 Help

Chat with AI Assistant

Use the AI Assistant tool window to ask questions about programming-related topics, or iterate on a task. The AI Assistant takes into consideration the language and technologies used in your solution.

In the input field of the AI Assistant tool window, type your question and press Enter to submit your query.

ReSharper: Asking AI Assistant programming-related questions
ReSharper: Asking AI Assistant programming-related questions

Each code snippet in the AI Assistant reply can be quickly reused — click the icons in the top right corner of the snippet to copy or insert it into the editor.

Your conversations with the AI Assistant can be organized is separate chats, which is helpful if you want to return to a specific conversation later. The set of queries and responses in each chat builds up a unique context for that chat, which is taken into account by the language model to give more relevant responses to queries that relate to the chat's topic.

To create a new chat, click the ... button and choose either New Chat to start a new conversation from scratch or Duplicate to create a new conversation as a continuation of the current one.

ReSharper: Create a new AI Assistant chat

The list of chats is linked to a specific solution, and this list becomes available when you reopen the solution, even if you restart Visual Studio. To see the list of chats, click the hamburger icon in the top left corner of the AI Assistant tool window:

ReSharper: All AI chats list

Names of the chats are generated automatically and contain the summary of the initial query. If necessary, you can rename or delete a chat by clicking the ... button next to it in the list of chats.

Smart chat

The most relevant and helpful responses are provided by the AI Assistant in the smart chat mode. Smart chat is enabled by default, and you can disable it if needed by clearing the corresponding checkbox on the AI Assistant | General page of ReSharper options ( Alt+R, O ).

When the smart chat is enabled, ReSharper can access the source code of your solution, currently opened documents, Git history, and other project-related information and share it with the JetBrains AI service to significantly improve the relevance of the AI Assistant suggestions and make it able to answer questions related to your solution. For example, when you ask the assistant to explain the selected code, it will be able to analyze usages of that code in your solution and come up with a more meaningful explanation.

Otherwise, AI Assistant will answer your questions and generate suggestions using only the generic training data of the underlying language model.

Last modified: 18 January 2024