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.

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.

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.

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”.

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.

Thanks! This may work.

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

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).

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

I really with there was a quick way to toggle the suggestions/autocomplete on/off. It can get very annoying when you are just trying to read the file.

There is a setting and you can also do it from regular editor as well

See at bottom. you can disable Cursor Tab.
image

That’s nice! Thanks for sharing. I also like the snoozing option.

But I still think the most convenient thing would be being able to quickly toggle Cursor Tab using a single keyboard shortcut.

Hey, actually, it’s already available.

The toggle option is IMO an incomplete solution. A manual trigger or a much more subtle indicator like Zed supports would be better. I honestly don’t understand how people stand having the Cursor tab on all the time. It’s extremely noisy and off at times.

Toggling off seems to disable edit-context collection because toggling it on does not trigger a suggestion. This make it a solution only for turning on/off during longer edit sessions - requiring the user guess up-front whether it’ll be useful or not.

There are 3 options that are manual triggers in the screenshot.

Awesome.. this works

Thanks for your post. I was looking for something like this.