Shortcut to hide autocomplete popup
Answered
Hi,
This might go for all JetBrain IDE's, not sure? Sometimes the autocomplete popup gets in my way while working. Is there any chance you could make a shortcut for hiding the autocomplete popup or even better, use the same one as for "Hide Active Tool Windows". Or does the functionality already exist? Cheers
Please sign in to leave a comment.
Please try Esc button to hide autocompletion popup. Does it work for you?
No, since I use a custom mapping on that key. What is binded to Esc by default?
Yeah that is the problem. I tried default Keymap settings (XWin) and that worked. I will try finding a workaround for the Esc key. But the Escape in Editor Actions has to be mapped to Escape key and all works.
Yes, I need something other than Esc since Esc is also used in vim mode to exit out of insert mode. I guess there's no other way to map? VS Code has `hideSuggestWidget` which is mapped to Shift+Esc by default
I have the same issue as other vim mode users. Ideally the Esc key would work like this:
Alternatively, could we have the option to disable Enter for accepting the autocomplete suggestion (and use Tab only)? Right now we have to hit Esc before creating a new line if we want to ignore the autocomplete suggestion. So for vim mode users this means Esc and then another key or combination to get back to the editing mode we were in. The two workflows (for autocomplete and for vim mode) are in conflict.
Maybe there's a way to add a conditional to the `.ideavimrc` file? Is there a way to make vim mode aware of the autocomplete window state?
Rick Gladwin As IdeaVim is an open-source project partly driven by the open-source community behind it please check this possibility directly with them or create a feature request at https://github.com/JetBrains/ideavim
Thanks Miguel.
Any thoughts on this option? It's part of the IDE itself, rather than a plugin:
Also, is there an event or flag or state value in the IDE, that would be active when the autocomplete window is active, that a vim script could use in a conditional? The IdeaVim plugin supports vim scripts, but we'd need something to let the script know when to ignore a press of the escape key.
Here's a link to a thread I started on the IdeaVim discussion board about this, so that these two threads are linked:
https://github.com/JetBrains/ideavim/discussions/687#discussion-5531400
Rick Gladwin
As this is related to the behavior of the plugin, it's important to see what they will answer on the github repo.
You can also report directly at YouTrack for it https://youtrack.jetbrains.com/issues?q=%23%7BVim%20Plugin%7D%20