# Keyboard shortcuts chorded to Ctrl-K/Command-K

**URL:** <https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24>\
**Category:** Help\
**Created:** [August 22, 2023, 10:49pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24 "2023-08-22T22:49:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tavi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tavi/32/5_2.png) [@Tavi](https://forum.cursor.com/u/Tavi)\
**Post date:** [August 22, 2023, 10:49pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/1 "2023-08-22T22:49:48Z")

</div>

In VSCode, the Command-K shortcut (Ctrl-K on PC) is used as the first half of a bunch of chorded keyboard shortcuts. For example, the shortcut to close all editors is to press Command-K and then Command-W. But in Cursor, Command-K is used to issue a code instruction to the AI.

How do I access the various keyboard shortcuts bound to Command-K?

---

<div class="post-metadata">

**Author:** ![truell20](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/truell20/32/28583_2.png) [@truell20](https://forum.cursor.com/u/truell20)\
**Post date:** [August 22, 2023, 11:27pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/2 "2023-08-22T23:27:20Z")

</div>

Thanks for reporting this. What would your desired solution be here? We switch the default AI editing binding from Command K to something else? Or we switch the chorded keybinding?

I think right now we’re planning on trying out switching the chorded to keybinding to Command R if people like that.

---

<div class="post-metadata">

**Author:** ![Tavi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tavi/32/5_2.png) [@Tavi](https://forum.cursor.com/u/Tavi)\
**Post date:** [August 23, 2023, 5:46pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/3 "2023-08-23T17:46:42Z")

</div>

I have a fair bit of muscle memory around Command-K combos. I think I would prefer changing the AI’s default binding.

---

<div class="post-metadata">

**Author:** ![truell20](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/truell20/32/28583_2.png) [@truell20](https://forum.cursor.com/u/truell20)\
**Post date:** [August 24, 2023, 5:18am UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/4 "2023-08-24T05:18:36Z")

</div>

Gotcha here are [instructions for changing those](https://forum.cursor.com/t/how-do-i-change-the-keyboard-shortcuts-that-cursor-uses/33/2)

---

<div class="post-metadata">

**Author:** ![aiaiaieou](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@aiaiaieou](https://forum.cursor.com/u/aiaiaieou)\
**Post date:** [August 28, 2023, 7:28pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/5 "2023-08-28T19:28:12Z")

</div>

I updated mind to use cmd+option+L and cmd+option+K, to avoid existing shortcuts. Would probably make a good default.

The bigger problems I encountered were:

- These new keyboard shortcuts were wiped out (i.e. reset to Cursor’s default) after updating Cursor yesterday.
- The keyboard shortcuts were hard to set, for me, just trying to get option+cmd+L to _toggle_ the sidebar open & close. I finally figured out that `workbench.panel.aichat.view.toggleVisibility` doesn’t seem to work for this and that `aichat.close-sidebar` only works if the text input within the chat is _not_ focused. Since it focuses automatically when opening the sidebar, it’s impossible to set up a shortcut that simply toggles the chat open \> close \> open \> close \> etc).
- There is room for improvement in consistent naming–Cursor’s current commands are a mix of kebab case (`aichat.close-sidebar`), all one word (`aichat.opensidebar`), or camelCase (`aichat.switchToMostRecentChat`), etc meaning when this is fixed, I’ll probably end up losing my shortcuts again anyway.

CC @truell20 as fyi

---

<div class="post-metadata">

**Author:** ![liger](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/liger/32/20830_2.png) [@liger](https://forum.cursor.com/u/liger)\
**Post date:** [December 2, 2023, 8:20pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/6 "2023-12-02T20:20:30Z")

</div>

I just spent 30 minutes trying to set new shortcuts instead of cmk+k and I am failing to do so. As with most people, I have a motor drive to clear my terminal quite often and every time I hit cmd+k without thinking, ai popup comes up, this is driving me crazy. I have set/changed the shortcuts multiple times, restarted cursor multiple times, its not taking effect, going back to vs code, sorry.

---

<div class="post-metadata">

**Author:** ![liger](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/liger/32/20830_2.png) [@liger](https://forum.cursor.com/u/liger)\
**Post date:** [December 2, 2023, 8:27pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/7 "2023-12-02T20:27:01Z")

</div>

Of course I had to post the previous reply before I figure it out.

These two were the source of confusion for me…  
“aipopup.action.modal.generate” vs “cursorai.action.generateInTerminal”

Not going back to vscode, yet. 🤞

---

<div class="post-metadata">

**Author:** ![dangerdose](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@dangerdose](https://forum.cursor.com/u/dangerdose)\
**Post date:** [August 22, 2024, 6:08pm UTC](https://forum.cursor.com/t/keyboard-shortcuts-chorded-to-ctrl-k-command-k/24/8 "2024-08-22T18:08:08Z")

</div>

I was looking forward to subscribing but can’t do that if i have to abandon vs code default ctrl+k shortcuts frankly (sadly) and whatever the other non-homogenous things are. At least for me I, who highly configured VS code already, can’t consider cursor–not sure about all the things that are unhelpfully different. (I know i’m personally not the center of the universe, just sharing in case you might want to hear from a coding Karen)
