Cursor IDE - Auto Scroll

Feature request for product/service

Cursor IDE

Describe the request

Problem*
In a multi-root workspace with many repos, each terminal is usually tied to one repo (cwd / profile / tab). The Project Explorer often stays on a different root or collapsed section, so I hunt for the right folder after every terminal switch.
Requested behavior
When I focus a terminal (click tab or keyboard), Cursor should:

  1. Resolve which workspace folder matches that terminal (prefer shell-integration cwd, else creation cwd, longest path prefix match against workspace roots).
  2. In Project Explorer: expand that workspace folder if collapsed, reveal/select it, and scroll so it is visible.
  3. Keep focus in the terminal (do not steal focus unless there is a setting for it).
    Nice-to-have settings
  • cursor.explorer.syncOnTerminalFocus: off | workspaceRoot | deepestFolder (default: off)
  • Optional: reveal-only vs select, scroll alignment, debounce when switching terminals quickly.
    Why it matters
    Same pain as agent chats that touch multiple git repos—I need the tree to reflect where I’m working now without manual scrolling in a long explorer.

Hey Kaus, thanks for the detailed write-up!

You’re right that the Explorer doesn’t follow the terminal today. Auto-reveal only tracks the file that’s active in the editor, so switching terminals doesn’t move the tree. I’ve passed this along to the team as a feature request, including the opt-in setting idea.

In the meantime, there’s a partial shortcut: if a folder path is printed in the terminal (for example, after running pwd), Cmd+click it (Ctrl+click on Windows/Linux) and Cursor reveals that folder in the Explorer. It’s still a manual step, but it saves scrolling through a long tree. I’ll post here if there’s an update.