Skip to main content

Posts

Showing posts from May 19, 2024

How to fix "command aws.codeWhisperer.rejectCodeSuggestion not found"

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