Rian Quinn
Rian Quinn

Reputation: 1996

How to change the delay for hover?

When you hover your mouse over some code, it will attempt to tell you more about the thing you are hovered over. Sometimes it is more information about the function, or it will tell you how a symbol is defined, etc...

I like this feature, but it happens WAY too fast. I will be attempting to double click a symbol so that I can copy-paste it, and the window will popup and I end up double clicking something inside the dialog and not the code. How do I tell VSCode to wait like 1sec before showing this dialog? I couldn't find a setting for this.

Upvotes: 33

Views: 7853

Answers (2)

Mark
Mark

Reputation: 180659

Look for

Editor > Hover: Delay

Controls the delay in milliseconds after which the hover is shown.

Look for it in:

File >> Preferences >> Settings >> Editor >> Hover: Delay

Upvotes: 47

tukusejssirs
tukusejssirs

Reputation: 854

Settings JSON (Ctrl+Shift+,)

Simply open the settings JSON and append "editor.hover.delay": 1500 where 1500 is the desired delay value in milliseconds. Of course, it needs to be a valid JSON file. :)

Settings UI (Ctrl+,)

Simply search for hover delay and configure the value of Editor > hover delay.

Upvotes: 12

Related Questions