AI Assistant Help

AI keyboard shortcuts

This page lists all default AI Assistant keyboard shortcuts that you can use in the editor, chat, and tool window.

Editor shortcuts

Use the following shortcuts when working with code in the editor.

Shortcut

Action

Ctrl+\

Performs different actions based on context:

  • If used on an empty line, lets you provide a prompt to generate new code.

  • If used with selected code, lets you provide a prompt to modify it.

Tab

Accept the suggested code. If needed, you can configure a different shortcut for this action.

Ctrl+Right

Accept a suggestion word by word.

End

Accept a suggestion line by line.

Escape

Reject the suggested code.

Alt+Shift+\

Manually invoke code completion.

Alt+Enter

Open a context menu to access AI Assistant actions.

Chat shortcuts

Use the following shortcuts when interacting with AI Assistant in chat.

Shortcut

Action

Alt+Insert

Open a new chat.

Ctrl+\

Toggle chat mode.

Ctrl+F

Search for a specific chat. Can be invoked when viewing chat history.

AI Assistant tool window shortcuts

Use the following shortcut to resize the AI Assistant tool window.

Shortcut

Action

Ctrl+Shift+Quote

Maximize/restore the AI Assistant tool window.

Configure AI Assistant shortcuts

You can assign custom shortcuts to specific AI Assistant actions or reassign the existing ones.

  1. Press Ctrl+Alt+S to open settings and then select Keymap.

  2. Expand the Plugins folder, then navigate to JetBrains AI Assistant.

    Configure shortcuts
  3. Configure the shortcuts as required.

Last modified: 27 March 2025