Is there a way to set up a single keystroke that tells the IDE to stop suggesting code completions?
已回答
Sometimes, the IDE gets really excited about offering code completion tips. Sometimes they are useful; at other times the IDE pops up windows that obscures the code you're trying to type. Is there a single keystroke that can just tell the IDE “I don't want any suggestions right now?”
I know I can disable this in the settings, but as I mentioned, sometimes the suggestions are useful, so I'm not looking for how to disable them completely. More like “Hey can you take a break and let me type code for a while?”
请先登录再写评论。
Well, JetBrains AI says there is not:
There is no built-in shortcut to instantly dismiss or suppress code completion suggestions for the current session. The standard way to reject all suggestions is to press Esc, which closes the completion popup, but this does not prevent future popups from appearing as you type [1][5]. You can disable automatic popups in Settings | Editor | General | Code Completion and then manually invoke completion with Ctrl+Space when needed [5][2]. There is currently no configurable "toggle" action or shortcut to temporarily suppress suggestions without changing settings [3][4].
> The standard way to reject all suggestions is to press Esc, which closes the completion popup, but this does not prevent future popups from appearing as you type [1][5].
The problem here is that you can hit Esc, and after a single keystroke you usually get the same popups again. It doesn't always work consistently.
So I'll take this as “not currently possible.”
Hi Brian,
You are right, there is no single shortcut for this option I'm afraid.
The quickest way to disable the option is to hit Ctrl+Shift+A, type “show su” and hit Enter to open the corresponding settings page where you can uncheck the box.
Ctrl-Shift-A is useful, thank you!