AWS CodeWhisperer and GitHub Copilot don't get along in VSCode. Rejecting code
suggestions sometimes triggers the pop-up (repeatedly) "command
aws.codeWhisperer.rejectCodeSuggestion not found." This is especially annoying
when using Vim since it breaks the Escape key which is interpreted by VSCode as
rejecting code suggestions.
- Go to Command Palette (Command+Shift+P)
- Search for: Open Keyboard Shortcuts (JSON)
- Add:
{ "key": "escape", "command": "-aws.codeWhisperer.rejectCodeSuggestion", "when": "aws.codewhisperer.connected && inlineSuggestionVisible && !editorReadonly || isCloud9 && suggestWidgetVisible && !editorReadonly" }
- Restart VS code
Comments