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.
Hope this will work with you. I found this solution shortcut same as VS Code.
Solution as below,
CTRL+M+O
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 + ]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With