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