skip to Main Content

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.

enter image description here

2

Answers


  1. The command is called "Show Hover" (editor.action.showHover).

    By default is bound to CtrlK CtrlI. (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.

    Login or Signup to reply.
  2. You can also use the error lens extension to display error messages at the end of each line with an error

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search