Quick disable/enable

Is there a way to disable/enable the AI autocomplete & suggestions?
If not, it would be great to have some “shutup/speakup” shortcut.

The reasoning behind is the fact that sometimes the autocomplete doesn’t allow for thinking/editing without making a mess of the visualisation.

It can became quite annoying.

Thanks.

2 Likes

It would be nice to have a shortcut to trigger the auto complete. It would work like this:

  1. If the auto complete is enabled - pressing the shortcut would forcefully run a suggestion, whether it’s already showing or not.
  2. If auto complete is disabled - pressing the shortcut would trigger a suggestion despite the auto complete being disabled.

This would solve both problems:

  1. Sometimes auto complete doesn’t suggest for whatever reason or if you accidentally clicked away from a suggestion.
  2. Allowing people to manually trigger it while otherwise keeping it disabled.
2 Likes

I am away from the computer at the moment, so I can’t share a screenshot, but at the bottom right of the screen there is a Cursor Tab button which you can click to toggle the functionality on and off. And I believe there is a shortcut for that, or at least a clickable link that appears close to where your cursor is, that offers you the choice to turn it off. I will confirm when back at computer.

2 Likes

I think you can set a shortcut to this, in the keybinding settings. See my screenshot. You can also set it to enable - “enable cursor tab”.

1 Like

That’s not a bad idea. Would also work for me. But I still think it would be nice to have some behavioural controls. Even if it is as you say, some ppl may want it to be as it is now.

1 Like

Thanks! This may work.

1 Like

Further to my last post in this thread, this is is the behaviour I was referring to:

Screenshot 01 - Cursor Tab link in bottom right of screen - ON
cursor_tab_link_before

Screenshot 02 - Option to turn off Cursor Tab from within Editor
turn_off_cursor_tab_from_within_editor

Screenshot 03 - Cursor Tab link in bottom right of screen - OFF
cursor_tab_link_after

3 Likes

Maybe a stupid gripe, but there are separate commands for the disable and enable settings. It should be a single switch. As it currently stands one has to make two different keybindings on what is already a binding-cramped application imo (necessarily so, but still).

3 Likes

To set a keybinding to enable and disable autocomplete (aka Cursor Tab):

  1. Type Command/Ctrl + Shift + P.
  2. Go to “preferences: open keyboard shortcuts”
  3. Search ‘cursor tab’
  4. Set an enable hotkey and a disable hotkey.

There is no option to have a single hotkey that toggles it AFAIK.

I wish to do this with a vim leader key

for example like:

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["<leader>", "z"],
      "commands": ["workbench.action.toggleZenMode"]
    },

Is it possible? What is the command name?

  {
    "key": "cmd+1",
    "command": "editor.cpp.disableenabled"
  },
  {
    "key": "cmd+2",
    "command": "editor.action.enableCppGlobally"
  }

This is only for auto imports and type checks, it would be nice to have the same feature for intellisense