Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 390
gkeenley Avatar asked Mar 31 '19 18:03

gkeenley


People also ask

How do I stop VS Code pop ups?

Type “editor. hover. enable” into the search field then check/uncheck the checkbox associated with “Controls whether the hover is shown.” to enable/disable the suggestion tooltip on hover.

How do I ignore suggestions in VS Code?

By default, VS Code shows snippets and completion proposals in one widget. You can control the behavior with the editor. snippetSuggestions setting. To remove snippets from the suggestions widget, set the value to "none" .


3 Answers

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.

like image 54
Matt Bierner Avatar answered Oct 19 '22 19:10

Matt Bierner


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

like image 22
ciars Avatar answered Oct 19 '22 20:10

ciars


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" 
    }
like image 3
Ramasamy Kandasamy Avatar answered Oct 19 '22 19:10

Ramasamy Kandasamy