In vscode, I have a python linter setup which helps me identify if there are any errors in my code, by underlining the error prone section with red swiggly lines. I can see the error message, if I hover over that section. Is there a keyboard shortcut which can show the error message, without actually requiring me to hover.
Attaching a screenshot for reference.
2
Answers
The command is called "Show Hover" (
editor.action.showHover
).By default is bound to
Ctrl
K
Ctrl
I
. (Last character here is upper case letter "i", if even code renders illegible sans-serif.)(Or you can find it in and invoke it from the Command Palette.)
I too wasn’t able to find it at first, because "hover" was not therm I’d search for. ‘Mouse’, ‘cursor’, ‘tooltip’, ‘hint’, ‘info’, ‘bubble’ or ‘popup’ were.
You can also use the error lens extension to display error messages at the end of each line with an error