keyboard shortcut to turn autocomplete on and off

Is there a way to turn autocomplete on and off with a keyboard shortcut?

Since for those of us who are practicing python for example, many times we do not want it to show us how to do something, but rather do it ourselves. On the other hand, autocomplete is still very useful to create documentation, comments and things like lists quickly and be more productive when practicing, so I think a quick way to activate and deactivate autocomplete would be great

Hi @Enzopin ,

Does this assist?

I’m doing this in keybindings.json:

  {
    "key": "ctrl+shift+x",
    "command": "editor.cpp.disableenabled"
  },
  {
    "key": "ctrl+shift+c",
    "command": "editor.action.enableCppGlobally"
  }

Seems to be working. I wish cmd shift x would toggle but I’m not sure the when statement value that would check the cpp enabled state

I would personally love it if I could disable autocomplete suggestions for editing regular text, but get suggestions for code. It’s hard to think while writing when the editor keeps suggesting text.