skip to Main Content

When I activate suggestions by pressing ctrl+space, I get a list of suggestions and Javadoc for the highlighted suggestion.

suggestion list with javadoc popup for highlighted suggestion

If I click the X – circled in red – the popup is hidden and won’t appear next time I activate suggestions.

suggestion list with no javadoc popup

The only way I have found to restore the javadoc popup is to mouse over to the end of the highlighted suggestion and click on the Read More icon – circled in red.

suggestion list with Read More icon

Does Visual Studio Code have keyboard shortcuts, or can I create shortcuts, that will hide and restore the Javadoc popup?

I have searched settings and keyboard shortcuts and haven’t found any predefined shortcuts

2

Answers


  1. VS Code does not have built-in shortcut to hide and restore to Javadoc popup.
    Retrigger it with Ctrl+Space or cmd +Space on macOS

    Login or Signup to reply.
  2. vscode doesn’t have a built-in shortcut to hide and unhide the javadoc popup. You can use Ctrl+Space to trigger it. Or create a custom shortcut. Start by selecting the File, open Preferences, and tap on the keyboard shortcuts.
    In the page that opens, select the Open keyboard shortcuts (JSON) button. You can add custom shortcuts to the file. For example:

      {
            "key": "Ctrl+Shift+J",
            "command": "toggleJavadoc",
            "when": "editorTextFocus"
        }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search