1

in other editor we can collapse method with keyboard shortcuts like we used to in VS Code. I want to know how to do that in Cursor AI Editor.

I get some reference from some podcast and other websites. but not working for me.

1
  • There's a difference between shortcuts in Windows and Mac. Commented Oct 30 at 14:46

3 Answers 3

7

Hope this will work with you. I found this solution shortcut same as VS Code.
Solution as below,

CTRL+M+O
Sign up to request clarification or add additional context in comments.

Comments

1

In case people still struggle with this, using a Mac the commands for the Cursor IDE are as follows:

  • Collapse all: CMD + R + 0 (zero)

  • Expand all: CMD + R + J

To collapse/expand only a class or method, click with your cursor on the class/method's name and then use these commands:

  • Collapse class/method etc.: CMD + R + [

  • Expand class/method etc.: CMD + R + ]

Comments

0

To expand all

To minimize all

Version: 1.4.5 (user setup)

VSCode Version: 1.99.3

Commit: af58d92614edb1f72bdd756615d131bf8dfa5290

Date: 2025-08-13T02:08:56.371Z

Electron: 34.5.8

Chromium: 132.0.6834.210

Node.js: 20.19.1

V8: 13.2.152.41-electron.0

OS: Windows_NT x64 10.0.26100

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.