Are you ever stuck with too many tabs open in Cursor? Thank god there’s a simple fix for that.
Cursor opens a lot of files for you when the agent is working, and before you know it the tab bar is full of files that have nothing to do with what you’re looking at. That makes it a lot harder to keep track of the relevant files.
Since Cursor is built on VSCode, the fix is the same as in VSCode.
Prerequisites
- Cursor installed
Steps to set Cursor max for opened tabs
- Open the VSCode settings using
CTRL + ,on Windows or⌘ + ,on Mac (not the Cursor Settings page) - Search for
workbench.editor.limit - Set the
workbench.editor.limit.valueto the amount of tabs that you want open. I prefer to have it on 5 on a 14-inch Macbook Pro, since otherwise it clutters the window. - Set
workbench.editor.limit.enabledtotrueby clicking it
And from now on, remember to use the ⌘ + P to quickly open new tabs.
If you prefer editing the settings.json directly, add this:
"workbench.editor.limit.enabled": true,
"workbench.editor.limit.value": 5