gkeenley
gkeenley

Reputation: 7408

How to remove popup window showing function definition in VSCode

When I'm writing the body of a function in VSCode, a window pops up showing the definition of the function, as shown in the attached screenshot. Does anyone know if there's a setting I can use to remove this?

Thanks!

enter image description here

Upvotes: 36

Views: 33340

Answers (3)

Ramasamy Kandasamy
Ramasamy Kandasamy

Reputation: 797

Parameter hints could be useful, I would suggest to set simple keybindings to toggle between show/hide parameter hints.

I use the following settings/keybindings to toggle using shift+space and space.

  • Disable parameter hint by adding "editor.parameterHints.enabled": false to settings.json.

  • Bind shift+space to trigger parameter hints. Default is ctrl+shift+space.

//keybindings.json
    { 
        "key": "shift+space",
        "command": "editor.action.triggerParameterHints",
        "when": "editorHasSignatureHelpProvider && editorTextFocus" 
    },
  • Bind space to hide parameter hint.Default is esc.
//keybindings.json
    {
        "key": "space",
        "command": "closeParameterHints",
        "when": "editorFocus && parameterHintsVisible" 
    }

Upvotes: 6

Matt Bierner
Matt Bierner

Reputation: 65593

That window is the signature help / parameter hints. Press esc to cancel out of an individual popup, or set"editor.parameterHints.enabled": false to disable it entirely.

Upvotes: 40

ciars
ciars

Reputation: 162

You should try setting "editor.quickSuggestions": false and "editor.suggestOnTriggerCharacters": false to disable the suggestions.

Upvotes: 11

Related Questions