User actions - CodeWhisperer

CodeWhisperer's features are becoming a part of Amazon Q Developer. Learn more

User actions

Amazon SageMaker
Action Keyboard shortcut

Manually trigger CodeWhisperer

MacOS: Option + C

Windows: Alt + C

Accept a recommendation

Tab

Next recommendation

Down arrow

Previous recommendation

Up arrow

Reject a recommendation

ESC

JupyterLab
Action Keyboard shortcut

Manually trigger CodeWhisperer

MacOS: Option + C

Windows: Alt + C

Accept a recommendation

Tab

Next recommendation

Down arrow

Previous recommendation

Up arrow

Reject a recommendation

ESC

AWS Glue Studio Notebook
Action Keyboard shortcut

Manually trigger CodeWhisperer

MacOS: Option + C

Windows: Alt + C

Accept a recommendation

Tab

Next recommendation

Down arrow

Previous recommendation

Up arrow

Reject a recommendation

ESC

Toolkit for Visual Studio
Action Keyboard shortcut

Manually trigger CodeWhisperer

AWSToolkit.CodeWhisperer.GetSuggestion in the keybindings

Alt + C

Accept a recommendation

Tab

Next recommendation

Edit.NextSuggestion in the keybindings

Alt + .

Previous recommendation

Edit.PreviousSuggestion in the keybindings

Alt + ,

Reject a recommendation

ESC, backspace, or keep typing and the recommendation will disappear as soon as there is a character mismatch.

See also Microsoft's Visual Studio default keyboard shortcuts.

To change keybindings in Visual Studio, use Tools -> Options -> Keyboard.

AWS Toolkit for Visual Studio Code
Action Keyboard shortcut

Manually trigger CodeWhisperer

MacOS: Option + C

Windows: Alt + C

Accept a recommendation

Tab

Next recommendation

Right arrow

Previous recommendation

Left arrow

Reject a recommendation

ESC, backspace, or keep typing and the recommendation will disappear as soon as there is a character mismatch.

To change keybindings in VS Code, see Key Bindings for Visual Studio Code on the VS Code website.

Note

The inline suggestions toolbar in VS Code is disabled by default. For more information, see Redesigned inline suggestions toolbar on the VS Code website.

AWS Toolkit for JetBrains
Action Keyboard shortcut

Manually trigger CodeWhisperer

MacOS: Option + C

Windows: Alt + C

Accept a recommendation

Tab

Next recommendation

Right arrow

Previous recommendation

Left arrow

Reject a recommendation

ESC, backspace, or keep typing and the recommendation will disappear as soon as there is a character mismatch.

To change keybindings in IntelliJ, see IntelliJ IDEA keyboard shortcuts on the JetBrains website.

Lambda
Action Keyboard shortcut

Manually fetch a code suggestion

MacOS: Option + C

Windows: Alt + C

Accept a suggestion

Tab

Reject a suggestion

ESC, Backspace, scroll in any direction, or keep typing and the recommendation automatically disappears.

To change the key bindings, use the following procedure.

  1. While viewing a particular function, choose the gear icon to open the Preferences tab.

  2. On the Preferences tab, select Keybindings.

  3. In the keybindings search box, enter CodeWhisperer.

Keybindings settings in AWS Cloud9 IDE with Amazon CodeWhisperer option highlighted.
AWS Cloud9
Action Keyboard shortcut

Manually fetch a code suggestion

MacOS: Option + C

Windows: Alt + C

Accept a suggestion

Tab

Reject a suggestion

ESC, Backspace, scroll in any direction, or keep typing and the recommendation automatically disappears.

  1. While viewing a particular environment, choose the gear icon to open the Preferences tab.

  2. On the Preferences tab, select Keybindings.

  3. In the keybindings search box, enter CodeWhisperer.

  4. In the Keystroke column, double-click the space corresponding to the function you're interested in.

  5. Enter the keys that you want to bind the function to.

AWS Cloud9 interface showing Keybindings settings with options for keyboard mode and custom keybindings.