# How to add keybinding to toggle cursor tab?

**URL:** <https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152>\
**Category:** Help\
**Created:** [September 5, 2024, 6:43pm UTC](https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152 "2024-09-05T18:43:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danthemango](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danthemango/32/4159_2.png) [@danthemango](https://forum.cursor.com/u/danthemango)\
**Post date:** [September 5, 2024, 6:43pm UTC](https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152/1 "2024-09-05T18:43:38Z")

</div>

I saw [this post](https://forum.cursor.com/t/how-to-toggle-to-normal-editing/13748/2) which discusses how to add keybindings to enable or disable Cursor Tab. However I would’ve assumed I could have a key which disables it if it enabled, or enables it if it is disabled.

I don’t know where to find a “when expression” which changes this functionality, and it appears that “Inspect Context Keys” is broken/disabled.

---

<div class="post-metadata">

**Author:** ![at-maxa](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/at-maxa/32/5517_2.png) [@at-maxa](https://forum.cursor.com/u/at-maxa)\
**Post date:** [September 19, 2024, 5:33pm UTC](https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152/2 "2024-09-19T17:33:19Z")

</div>

Would that work ?

- Open keyboard shortcuts ([Documentation](https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-editor))
- Set your shortcut here:  
 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/d/dd810356ba21ec53cc8c5349bee8e0241a7c9305.png)

EDIT: Oops I just saw you are asking for the `When` column above.

---

<div class="post-metadata">

**Author:** ![mikeyhew](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mikeyhew/32/14998_2.png) [@mikeyhew](https://forum.cursor.com/u/mikeyhew)\
**Post date:** [January 17, 2025, 8:12pm UTC](https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152/3 "2025-01-17T20:12:37Z")

</div>

Would be great to have a command called Toggle Cursor Tab that does the toggle. I looked into adding it myself but I can’t find the source code, I take it Cursor isn’t open source?

---

<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:** [January 18, 2025, 4:25pm UTC](https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152/4 "2025-01-18T16:25:13Z")

</div>

Hey, you can use this solution to toggle Cursor Tab on or off whenever you need. You can set any shortcut that’s convenient for you:

> [@Keyboard shortcut to turn autocomplete on and off](https://forum.cursor.com/t/keyboard-shortcut-to-turn-autocomplete-on-and-off/18043/10):
>
> @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…

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:24am UTC](https://forum.cursor.com/t/how-to-add-keybinding-to-toggle-cursor-tab/15152/5 "2026-06-18T10:24:41Z")

</div>

Closed on June 18, 2026, 10:24am UTC


