AI Assistant. General options
On this page of ReSharper options, you can configure the integrated AI Assistant.
Data sharing
Enable smart chat | 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. |
Enable context actions | When this checkbox is selected, you can use all AI-specific context actions in the Alt+Enter menu. Otherwise, only the basic actions for sending the selection to the AI chat will be available. |
Enable AI code completion | In each new line of code that you are going to write, AI Assistant can generate suggestions ranging from a single line to multiple statements implementing some logic according to the surrounding context and symbol names. In the example below, AI Assistant suggests an implementation of a method based on its name and parameter: AI code completion is enabled by default, and if you also have IntelliCode or GitHub Copilot enabled in Visual Studio, ReSharper's AI completion will take priority over suggestions from those systems. You can clear this checkbox to disable ReSharper's AI completion. |
Invoke automatically on new line | By default, AI code completion suggestions also appear as soon as you move the caret to a new line. You can clear this checkbox to disable automatic suggestions, but you will still be able to generate AI completion suggestions by pressing Alt+/. Alt+/ will only work if you have selected one of the default keyboard shortcut schemes. If you have not, select one of the schemes on the page of ReSharper options Alt+R, O and click Apply Scheme. You can also configure a custom shortcut AI code completion: open Visual Studio options ( |
In-place suggestions
Show all in-place AI actions suggestions | When this checkbox is selected, some AI-powered actions will be suggested as clickable inline hints. Note independently of this checkbox, these actions are always available in the Alt+Enter menu. |
Show 'Implement this' suggestions | When this checkbox is selected, the AI-powered Implement this action is available as a clickable inline suggestion for empty methods. The action will generate an implementation based on the current context, method name, and signature. |
Show 'Document this' suggestions | When this checkbox is selected, the AI-powered Document this action is available as a clickable inline suggestion for empty documentation comments on types and type members. The action will generate XML-doc comments based on the name and the contents of the corresponding symbol. |
Tool window size
AI Chat font size | Select a font size for the AI Assistant window. |
Input settings
Submit with Enter | Select this option to submit your AI Assistant queries by pressing Enter and add line breaks with Shift+Enter or Ctrl+Enter. |
Submit with Ctrl+Enter | Select this option to submit your AI Assistant queries by pressing Ctrl+Enter and add line breaks with Enter or Shift+Enter. |
Chat behavior
Enable sliding context window | Each AI Assistant chat works as a context window, where all subsequent queries are processed in the context of previous queries in that chat. There is a limit of the context window set by the underlying AI model, which also limits the length of the chat. To overcome this limit, ReSharper enables sliding context window, which starts discarding the oldest queries and responses when the limit is reached and thus always keeps the context window within the limit. If you disable this option , the behavior of the chat changes: as soon as it reaches the limit, it suggests making the initial part of the conversation smaller by summarizing it. |
Explanation features
Enable exception explanation features | If this checkbox is enabled, ReSharper helps explain unhandled exceptions that occur in debug mode. It adds dedicated hints in the editor and in the exception helper popup, which can be configured separately with the below options. Besides, you can use the AI chat to learn more about the exception that occurred. Ror example, you can type |
Show as inlay hint in the editor | If the Enable exception explanation features option is on, this option lets you enable or disable the clickable Explain with AI hint in the editor. |
Show in the exception helper popup | If the Enable exception explanation features option is on, this option lets you enable or disable the clickable Explain with AI hint in the exception helper popup. |
AI prompt library
Opens the AI prompt library where you can keep a collection of custom prompts.
Custom global prompt
Use this field to tune the AI Assistant prompt that will be silently used for all your queries in the AI chat as well as in all AI actions that are invoked from the ReSharper user interface, such as AI-powered code completion and context actions code completion. This can be helpful when working on projects of specific types to make the AI replies more relevant.
AI rename suggestions
When the Enable AI rename suggestions checkbox is enabled, AI Assistant adds its naming suggestions to the list of suggested new names in the Rename refactoring.