Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escape key no longer closes VS Code hover window/tooltip

I use the keyboard shortcut CMD+K, CMD+I to show a hover tooltip in VS Code when it detects errors:

VS Code error hover/tool tip

I used to press the escape key to close these hover elements, but that no longer works. They continue to appear even after pressing escape, navigating to a different part of the code, or even navigating to another file tab. Here's a Dart hover window showing over a JSON file:

VS Code Dart error hover tooltip appears in an unrelated JSON file

The only solution I have found is to use my mouse to select the window with a tap, then press the escape key. As a Vim user (I use Vim, btw), I would prefer if I didn't have to use my mouse at all.

How can I restore the power of the escape key to close the hover error tooltip window in VS Code?

like image 397
Nate Perdomo Avatar asked Oct 29 '25 08:10

Nate Perdomo


1 Answers

I had previously been annoyed by the hover element on my small MacBook screen and disabled it. Re-enabling the hover feature resolved the issue. I'll report the bug to VS Code since disabling the hover shouldn't affect the escape key/window focus.

To enable hover:

  1. Go to settings (CMD+, or Code->Settings...->Settings)
  2. Search for "hover: enabled"
  3. Ensure the option Editor > Hover: Enabled is selected

Link to GitHub issue

like image 97
Nate Perdomo Avatar answered Nov 01 '25 12:11

Nate Perdomo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!