bug: Default "Hide Completions" keyboard shortcut conflicts with IdeaVim
IDE Information
IntelliJ IDEA 2024.3.4 (Ultimate Edition) Build #IU-243.25659.39, built on February 27, 2025 Licensed to Booking.com B.V.
Runtime version: 21.0.6+8-b631.39 aarch64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 15.4.1 Kotlin plugin: K2 mode GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 2048M Cores: 8 Metal Rendering is ON Registry: ide.experimental.ui=true jvm.dfa.analysis.ui.security.analysis.window.was.shown=true Non-Bundled Plugins: PythonCore (243.24978.46) com.markskelton.one-dark-theme (5.13.0) com.github.deeepamin.gitlabciaid (1.0.5) name.kropp.intellij.makefile (243.23654.19) IdeaVIM (2.22.0) com.julienphalip.ideavim.functiontextobj (1.0.2) CheckStyle-IDEA (5.105.0) com.stylismo.nullability-annotations-inspection (0.0.10) Pythonid (243.25659.59) org.asciidoctor.intellij.asciidoc (0.43.6) com.intellij.bigdatatools.core (243.25659.59) com.intellij.exposed (243.25659.39) com.github.l34130.mise (4.5.0) org.sonarlint.idea (10.18.0.80657) com.sourcegraph.jetbrains (7.88.0) org.jetbrains.bazel (2024.3.11) com.intellij.bigdatatools.kafka (243.25659.39) Kotlin: 243.25659.39-IJ
Bug Description
The default keyboard shortcut for "Hide Completions" is Esc. In IdeaVim, the default keyboard shortcut to exit insert mode — which is exclusively a shortcut used while trying to edit text — is also Esc.
This leads to an incredibly frustrating editing experience. Every time I try to exit insert mode (which is often multiple times per minute), there is a high chance that Cody will pop up a suggestion just in time to intercept my Esc keypress. When this happens, pressing Esc will dismiss the suggestion, but IdeaVim will never see the keypress and so I stay in insert mode. This means I have to press Esc again. But what often happens is Cody will pop up again with a suggestion, intercepting the keystroke once more. Depending on how fast Cody is producing suggestions, I often have to just relentlessly spam Esc multiple times until I manage to sneak one past Cody.
I think Cody should, by default, not use Esc for this. For related reasons, it also shouldn't use Tab by default for "Accept Autocomplete Suggestion", as this conflicts with "Insert Inline Proposal". In short, I think Cody should default to shortcuts that intentionally do not conflict with the built-in completion system or with IdeaVim, both of which are extremely popular.
Additional context
No response