# CMD + K vs CMD + R Keyboard shortcuts default

**URL:** <https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172>\
**Category:** Discussions\
**Created:** [October 20, 2023, 7:35pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172 "2023-10-20T19:35:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommulkins](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tommulkins/32/216_2.png) [@tommulkins](https://forum.cursor.com/u/tommulkins)\
**Post date:** [October 20, 2023, 7:35pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/1 "2023-10-20T19:35:32Z")

</div>

By any chance is there some kind of quick way to change the Cursor CMD + K’s to CMD + R’s and vice-versa?

CMD + K is the default for many things in VSCode.

Ty!

 ![Cursor_and_YouTube_Music_-Happy_Relaxing_Guitar_Music_For_Children-YouTube_Music_and_Keyboard_Shortcuts—_worthy-v2](https://us1.discourse-cdn.com/cursor1/original/1X/dac898026f713f7a1e37a4d3e8f176cbcaed32e0.png)

---

<div class="post-metadata">

**Author:** ![arvid220u](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arvid220u/32/82089_2.png) [@arvid220u](https://forum.cursor.com/u/arvid220u)\
**Post date:** [October 20, 2023, 8:13pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/3 "2023-10-20T20:13:49Z")

</div>

There is a way actually! You can change `workbench.action.keychord.leader`.

> [@How do I change the keychord bindings?](https://forum.cursor.com/t/how-do-i-change-the-keychord-bindings/760/2):
>
> In Cursor, Cmd/Ctrl+K is used for the inline edits. We therefore changed the keychord leader key to be Cmd+R on Mac and Ctrl+M on Windows and Linux. For example, “Unfold all” is Cmd+R Cmd+J on Mac and Ctrl+M Ctrl+J on Windows and Linux. If you’re used to the VSCode keybindings, you can change the shortcut for workbench.action.keychord.leader in the keyboard shortcut settings (Cmd+R Cmd+S or Ctrl+R Ctrl+S). This will update all keychords. For example, you can set that to Cmd+K, and then change t…

---

<div class="post-metadata">

**Author:** ![tommulkins](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tommulkins/32/216_2.png) [@tommulkins](https://forum.cursor.com/u/tommulkins)\
**Post date:** [October 21, 2023, 1:15pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/4 "2023-10-21T13:15:51Z")

</div>

Thanks @arvid220u ! Once I changed that I was able to switch the few Cursor commands to CMD + R instead. I think it was an odd choice to not have that be the default since CMD + K is the norm in vscode.

---

<div class="post-metadata">

**Author:** ![natemwilson](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@natemwilson](https://forum.cursor.com/u/natemwilson)\
**Post date:** [February 8, 2024, 6:04am UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/5 "2024-02-08T06:04:06Z")

</div>

@tommulkins Could you share your changes to keybindings.json that achieved this?

I added the following:

```auto
  {
    "key": "cmd+k",
    "command": "workbench.action.keychord.leader",
  },
  {
    "key": "cmd+r",
    "command": "aipopup.action.modal.generate"
  }

```

but with that config saved, when i press cmd+k to start a keychord, I immediately see a modal pop up saying: _“Go to the keyboard shortcut settings and change the value of workbench.action.keychord.leader to change the keychord leader keybinding”_

---

<div class="post-metadata">

**Author:** ![natemwilson](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@natemwilson](https://forum.cursor.com/u/natemwilson)\
**Post date:** [February 8, 2024, 6:19am UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/6 "2024-02-08T06:19:26Z")

</div>

Figured it out. You can’t do this directly in `keybindings.json`. You have to actually go to the Keybindings UI based Settings and set the `workbench.action.keychord.leader` to `cmd+k`. I then also set `cmd+r` to `aipopup.action.modal.generate`.

Here are all those changes: [Switch Cursor.sh cmd+k and cmd+r to approximate VSCode — paste.sr.ht](https://paste.sr.ht/~natemwilson/ccb730f2758466915b8c9fe0416e5eb1c17ecdfb)  
Those are probably all of these listed commands: [Keybindings - Cursor](https://docs.cursor.sh/get-started/keybindings)

One funny bug is now below the integrated terminal, it no longer says “⌘K to generate a command”, but rather it says “undefined to generate a command”

---

<div class="post-metadata">

**Author:** ![tommulkins](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tommulkins/32/216_2.png) [@tommulkins](https://forum.cursor.com/u/tommulkins)\
**Post date:** [February 18, 2024, 8:23pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/7 "2024-02-18T20:23:43Z")

</div>

hey @natemwilson - Sorry I didn’t see this until now.

I went into Keyboard Shortcuts and changed the keychord.leader from there.

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/8/8797a898725bdd20225190bd42fc7602530db479.png)

---

<div class="post-metadata">

**Author:** ![braebo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/braebo/32/3420_2.png) [@braebo](https://forum.cursor.com/u/braebo)\
**Post date:** [August 24, 2024, 12:20am UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/8 "2024-08-24T00:20:14Z")

</div>

Changing `workbench.action.keychord.leader` just saved me a lot of time… thank you!!

Breaking _all_ key chords was a bad move… I’m surprised they haven’t fixed this yet.

---

<div class="post-metadata">

**Author:** ![YuTengjing](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/yutengjing/32/3704_2.png) [@YuTengjing](https://forum.cursor.com/u/YuTengjing)\
**Post date:** [September 9, 2024, 2:47pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/9 "2024-09-09T14:47:19Z")

</div>

This is why I made the extension:

> **[VSCode Keybindings for Cursor - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=YuTengjing.vscode-classic-experience)**
>
> Extension for Visual Studio Code - Restore familiar VSCode keybindings in Cursor editor. Smooth transition for VSCode users.

---

<div class="post-metadata">

**Author:** ![quintenverniers](https://avatars.discourse-cdn.com/v4/letter/q/f9ae1b/32.png) [@quintenverniers](https://forum.cursor.com/u/quintenverniers)\
**Post date:** [November 18, 2024, 5:41pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/10 "2024-11-18T17:41:50Z")

</div>

Thanks for your response!  
I really want to give Cursor a fair shot, but that cmd+k overwrite was really holding me back.  
I swapped them, I’m ok with learning a new command for cursor, but don’t want to learn a new command for everything else.

I think it would be a good idea if they could add that as a setting!

---

<div class="post-metadata">

**Author:** ![xeger](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/xeger/32/17617_2.png) [@xeger](https://forum.cursor.com/u/xeger)\
**Post date:** [December 27, 2024, 6:55pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/11 "2024-12-27T18:55:45Z")

</div>

Redefining `workbench.action.keychord.leader` is a huge improvement, but there’s still one broken thing: in classic VS Code, when I’m in the terminal, `cmd+k` clears the terminal. Currently it waits for a second chording key to be pressed. ☹

I ended up using the extension that someone posted, just to avoid a bunch of custom keybindings, and I then rebound terminal-clearing gestures to `cmd+k cmd+k` … I’m willing to accept that one small customization (which I will also make in Code so that I can switch between them as I continue to evaluate).

---

<div class="post-metadata">

**Author:** ![1vecera](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/1vecera/32/20975_2.png) [@1vecera](https://forum.cursor.com/u/1vecera)\
**Post date:** [January 21, 2025, 1:42pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/12 "2025-01-21T13:42:53Z")

</div>

thanks, amazing - popularity of this extension should also be a signal to cursor devs.

---

<div class="post-metadata">

**Author:** ![Salva\_r](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Salva\_r](https://forum.cursor.com/u/Salva_r)\
**Post date:** [January 28, 2025, 2:54pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/13 "2025-01-28T14:54:01Z")

</div>

Insane to overwrite the most used key combination, thanks for the help.

---

<div class="post-metadata">

**Author:** ![Noitidart](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Noitidart](https://forum.cursor.com/u/Noitidart)\
**Post date:** [April 27, 2025, 1:40pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/14 "2025-04-27T13:40:30Z")

</div>

Thank you. This is also a problem I’m having. Thanks for sharing your rebinding `workbench.action.terminal.clear` idea. I can’t find any other ideas that work. I tried to change `workbench.action.keychord.leader` “When” to `!terminalFocus` instead of `false` but that wouldn’t work either.

If anyone has any solutions to not have to rebind terminal-clearing to `Cmd K` please share.

---

<div class="post-metadata">

**Author:** ![tommulkins](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tommulkins/32/216_2.png) [@tommulkins](https://forum.cursor.com/u/tommulkins)\
**Post date:** [July 15, 2025, 9:27pm UTC](https://forum.cursor.com/t/cmd-k-vs-cmd-r-keyboard-shortcuts-default/1172/15 "2025-07-15T21:27:12Z")

</div>

A recent update to Cursor changed back the `keychord.leader` to `R` so I’m leaving this to help others as well as myself.

After changing this back to `Cmd + K`, I found changing these two keyboard settings helpful:

`Cursor: Open Edit` to `Cmd + R`  
`Terminal: Generate in Terminal` to `Cmd + R`
