How can we fold code regions when ⌘K is used for AI generation?

I often use code folding in vscode but this requires the use of ⌘K usually.

⌘K is obviously used for generation, so how do we go about code folding with Cursor?

I may have missed something very obvious but can’t find anything with Google.

Thanks in advance

Just as I post this, typically, I manage to find the answer. The ⌘K is now ⌘R for this purpose.

2 Likes

You can also use Command + Shift + P, and search for you command.

Then, when you hit the small gear next to it, you can easily set the hotkey to whatever you like!

1 Like

try Command + m + m
or
Command + Shift + P then type fold

Thank you! And all shortcuts can be found in Cursor > Settings > Keyboard shortcuts (or command R + command S)