# Keyboard shortcut to turn autocomplete on and off

**URL:** <https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043>\
**Category:** Feature Requests\
**Created:** [September 21, 2024, 8:47pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043 "2024-09-21T20:47:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enzopin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/enzopin/32/5772_2.png) [@Enzopin](https://forum.cursor.com/u/Enzopin)\
**Post date:** [September 21, 2024, 8:47pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/1 "2024-09-21T20:47:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [September 21, 2024, 8:48pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/2 "2024-09-21T20:48:18Z")

</div>

Hi @Enzopin ,

Does this assist?

> [@Quick disable/enable](https://forum.cursor.com/t/quick-disable-enable/15587/7):
>
> 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]

---

<div class="post-metadata">

**Author:** ![forddavis](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/forddavis/32/6001_2.png) [@forddavis](https://forum.cursor.com/u/forddavis)\
**Post date:** [September 23, 2024, 11:05pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/3 "2024-09-23T23:05:26Z")

</div>

I’m doing this in keybindings.json:

```auto
  {
    "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

---

<div class="post-metadata">

**Author:** ![einarmagnus](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/einarmagnus/32/7047_2.png) [@einarmagnus](https://forum.cursor.com/u/einarmagnus)\
**Post date:** [October 2, 2024, 9:08am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/4 "2024-10-02T09:08:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![amazing-magician](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/amazing-magician/32/8495_2.png) [@amazing-magician](https://forum.cursor.com/u/amazing-magician)\
**Post date:** [October 14, 2024, 6:35pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/5 "2024-10-14T18:35:13Z")

</div>

To set a keybinding for this:

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.

No option to have a single hotkey that toggles ASAIK.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [October 14, 2024, 10:44pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/6 "2024-10-14T22:44:01Z")

</div>

You might be able to accomplish this using the setting described here:

> [@Disable cursor tab for markdown files](https://forum.cursor.com/t/disable-cursor-tab-for-markdown-files/17325/2):
>
> Hey @hargup You can do this by adding it to your settings. Here’s how I have it set up: "cursor.cpp.disabledLanguages": ["plaintext", "markdown", "scminput"]

---

<div class="post-metadata">

**Author:** ![mbylst](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mbylst/32/8396_2.png) [@mbylst](https://forum.cursor.com/u/mbylst)\
**Post date:** [October 15, 2024, 2:29am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/7 "2024-10-15T02:29:41Z")

</div>

It’d be great if you could set a single key for toggle, rather than having to have a different key for enable and disable.

---

<div class="post-metadata">

**Author:** ![mbylst](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mbylst/32/8396_2.png) [@mbylst](https://forum.cursor.com/u/mbylst)\
**Post date:** [October 15, 2024, 5:56am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/8 "2024-10-15T05:56:40Z")

</div>

Please teach a man how to fish - where did you find these command names?

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 15, 2024, 8:27am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/9 "2024-10-15T08:27:34Z")

</div>

When you assign a key combination, it shows up in the JSON file.

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/4/47929b531fec3fbd69e9e7c6fb6c96337ce45bc1.png)

---

<div class="post-metadata">

**Author:** ![alexbeer](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@alexbeer](https://forum.cursor.com/u/alexbeer)\
**Post date:** [October 29, 2024, 4:16am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/10 "2024-10-29T04:16:04Z")

</div>

@mbylst I’ve been looking for the same thing - a single-key shortcut to quickly disable the mighty cursor tab when it’s doing too much and starts editing the code around the cursor when I’m just trying to fix some indentations.

Since I couldn’t find anything online, I tried to come up with my own solution. Maybe it’s not the most elegant way to do it, but I tied so many different things and this was the only thing that actually worked in the end.

Here’s the setup:  
First we need extensions, so hit Ctrl+Shift+X and in the marketplace find and install these two:  
“Settings Cycler” by hoovercj  
“multi-command” by ryuta46

A couple lines of code in the user _settings.json_ and _keybindings.json_.

_settings.json_:

```auto
{
    // ... other settings ...
    "cursor.cmdk.useThemedDiffBackground": true,
    "settings.cycle": [
        {
            "id": "toggleCursorTabSet_disable",
            "values": [{
                    "cursor.cmdk.useThemedDiffBackground": false,
                    "editor.cursorStyle": "line-thin"
            }]
        },
        {
            "id": "toggleCursorTabSet_enable",
            "values": [{
                    "cursor.cmdk.useThemedDiffBackground": true,
                    "editor.cursorStyle": "line"
            }]
        }
    ],
    "multiCommand.commands": [
        {
            "command": "multiCommand.toggleCursorTabEnable",
            "sequence": [
                "editor.action.enableCppGlobally",
                "settings.cycle.toggleCursorTabSet_enable"
            ]
        },
        {
            "command": "multiCommand.toggleCursorTabDisable",
            "sequence": [
                "editor.cpp.disableenabled",
                "settings.cycle.toggleCursorTabSet_disable"
            ]
        }
    ]
}

```

_keybindings.json_:

```auto
[
    // ... other keybindings ...
    // this is optional : removes the default keybinding for ctrl+tab
    {
        "key": "ctrl+tab",
        "command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
        "when": "!activeEditorGroupEmpty"
    },
    // cursor tab toggle keybindings
    {
        "key": "ctrl+tab",
        "command": "multiCommand.toggleCursorTabEnable",
        "when": "!config.cursor.cmdk.useThemedDiffBackground"
    },
    {
        "key": "ctrl+tab",
        "command": "multiCommand.toggleCursorTabDisable",
        "when": "config.cursor.cmdk.useThemedDiffBackground"
    }
]

```

Don’t forget to remove any other keybindings for ‘Ctrl+Tab’ _or_ choose an alternative shortcut that isn’t already in used.

That should do the trick! 🙂  
By the way, I chose the ‘cursor.cmdk.useThemedDiffBackground’ setting to store the toggle state, as it doesn’t seem to have much impact anyway. It’s a bit messy, but hey… it works! You could also replace it with a different boolean key-value in _settings.json_. It’s necessary for the when-condition in the keybindings.

---

<div class="post-metadata">

**Author:** ![smskbuilds](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smskbuilds/32/16448_2.png) [@smskbuilds](https://forum.cursor.com/u/smskbuilds)\
**Post date:** [December 18, 2024, 5:09pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/11 "2024-12-18T17:09:45Z")

</div>

This worked for me - thank you!

---

<div class="post-metadata">

**Author:** ![Ivor1](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ivor1/32/6301_2.png) [@Ivor1](https://forum.cursor.com/u/Ivor1)\
**Post date:** [January 30, 2025, 3:08pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/12 "2025-01-30T15:08:18Z")

</div>

Thanks for this. It works in that I can more easily turn off (and sometimes when I am feeling hopeful - turn on) this feature.

> [@alexbeer](#):
>
> ```auto
> // ... other keybindings ...
> // this is optional : removes the default keybinding for ctrl+tab
> {
> "key": "ctrl+tab",
> "command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
> "when": "!activeEditorGroupEmpty"
> },
> // cursor tab toggle keybindings
> {
> "key": "ctrl+tab",
> "command": "multiCommand.toggleCursorTabEnable",
> "when": "!config.cursor.cmdk.useThemedDiffBackground"
> },
> {
> "key": "ctrl+tab",
> "command": "multiCommand.toggleCursorTabDisable",
> "when": "config.cursor.cmdk.useThemedDiffBackground"
> }
> 
> ```

It is a pity that one of Cursor’s main features needs to be turned off half the time.  
I am confident if they allow us to configure the key for the tragically named `Cursor Tab` then we will appreciate more when we need it.  
Seeing a great autocomplete suggestion and choosing it is a much better user experience than accidentally hitting tab for all the other reasons we have to hit tab and then having to figure out wtf cursor just did. That is not a feature.

---

<div class="post-metadata">

**Author:** ![kaki-jiu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kaki-jiu/32/26673_2.png) [@kaki-jiu](https://forum.cursor.com/u/kaki-jiu)\
**Post date:** [February 20, 2025, 4:09am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/13 "2025-02-20T04:09:48Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/2/0/20a3ee958175e4472e39fd5c94ddb4ff9cbc956a.png)  
I know I can enable/disable “cursor tabs”, but I need more fine-grained control logic

1. Is there a way to actively trigger “cursor suggestions”? When the “cursor tab” is “enable”, I always have to wait a few seconds for the suggestions to appear. During this period, I can’t confirm whether the “cursor tab” is working properly (is there a network problem or the cursor ta is not triggered at all?), I hope that a suggestion will be triggered when I press a “keyboard shortcuts”
2. Is there a way to switch the shortcut key for accepting “curse suggestions” from “tab” to other keys? I like to “tab” all the way, but I have to say that I need to fight for control with it in many cases (especially when tab is also a commonly used auto-completion shortcut key, I don’t want to change my usage habits for a new feature: switch the “accept suggestions of vs code” to “Enter”)

---

<div class="post-metadata">

**Author:** ![kaki-jiu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kaki-jiu/32/26673_2.png) [@kaki-jiu](https://forum.cursor.com/u/kaki-jiu)\
**Post date:** [March 3, 2025, 3:16am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/14 "2025-03-03T03:16:26Z")

</div>

> [@Copilot and intellisense: tab always triggers copilot over intellisense?](https://forum.cursor.com/t/copilot-and-intellisense-tab-always-triggers-copilot-over-intellisense/433/21):
>
> Hey all, I’m glad to Tab rebinding is now available inside Cursor with version v0.46! A new keybind named Accept Cursor Tab Suggestion is now available in the default keybind UI of Cursor.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/c/1/c1cb1914160eaa977be37af599265aba5142277c.png)

---

<div class="post-metadata">

**Author:** ![Ivor1](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ivor1/32/6301_2.png) [@Ivor1](https://forum.cursor.com/u/Ivor1)\
**Post date:** [March 12, 2025, 7:26pm UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/15 "2025-03-12T19:26:33Z")

</div>

I tried this just now and it works like a charm! Wow. I have my tab back 🙏 and I can use one of the best features as a bonus!

---

<div class="post-metadata">

**Author:** ![kesava-karri](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kesava-karri/32/54951_2.png) [@kesava-karri](https://forum.cursor.com/u/kesava-karri)\
**Post date:** [May 14, 2025, 1:03am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/16 "2025-05-14T01:03:03Z")

</div>

To be specific, assign a new hotkey to Toggle Cursor Tab

---

<div class="post-metadata">

**Author:** ![KushidharReddyCh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kushidharreddych/32/69213_2.png) [@KushidharReddyCh](https://forum.cursor.com/u/KushidharReddyCh)\
**Post date:** [July 8, 2025, 7:55am UTC](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/17 "2025-07-08T07:55:50Z")

</div>

logout from cursor and then use
