Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collapse all methods in Cursor AI Editor

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.

like image 378
Piyush Sapariya Avatar asked Apr 29 '26 05:04

Piyush Sapariya


2 Answers

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

CTRL+M+O
like image 185
Piyush Sapariya Avatar answered May 01 '26 13:05

Piyush Sapariya


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 + ]

like image 24
Seb852 Avatar answered May 01 '26 13:05

Seb852



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!