最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Escape key no longer closes VS Code hover windowtooltip - Stack Overflow

programmeradmin1浏览0评论

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

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:

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?

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

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:

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?

Share Improve this question edited Feb 17 at 15:26 Nate Perdomo asked Jan 17 at 16:50 Nate PerdomoNate Perdomo 13411 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

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

发布评论

评论列表(0)

  1. 暂无评论