Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript hover: option to enable/disable and set modifier key #142172

Closed
mariusa opened this issue Feb 4, 2022 · 2 comments
Closed

typescript hover: option to enable/disable and set modifier key #142172

mariusa opened this issue Feb 4, 2022 · 2 comments
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@mariusa
Copy link

mariusa commented Feb 4, 2022

I develop with Javascript/Typescript, but the informative hovers are getting a lot in the way. Moving the mouse somewhere triggers an informative Typescript hover enough times to be annoying.

Searching user preferences for "hover", I see other languages have an option to enable it:
2022-02-04_11-27_1

Request 1: Please add a similar option to enable/disable for Typescript

Request 2: Please add the possibility to trigger hover on Ctrl+Hover.
Now Ctrl shows additional info in hover. I'd prefer to show the hover (with the additional info) only on Ctrl+Hover, so it doesn't get in the way during regular coding, but can be easily triggered only when needed.

Related, but not the same: #94679, #92787, #54503

Thank you!

@mjbvz
Copy link
Collaborator

mjbvz commented Feb 7, 2022

Try setting "editor.hover.enabled": false to disable hovers

You can then trigger hovers again using a keybinding for editor.action.showHover

@mjbvz mjbvz closed this as completed Feb 7, 2022
@mjbvz mjbvz added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Feb 7, 2022
@mariusa
Copy link
Author

mariusa commented Feb 8, 2022

Thanks. This works, but it's more complex than needed.

"editor.hover.enabled": false
Then, with the mouse hovering over an error or area that normally would show the hover tooltip, I'd like to display the tooltip simply by pressing Ctrl. That is, get the same behavior as "editor.hover.enabled": true

Now I have to

  1. click in that area, then
  2. press a keybinding which is at least 2 keys

@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants