Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Projects SwitchNew to Visual Studio Code? Get it now.
Projects Switch

Projects Switch

sunzhongyi

|
4 installs
| (0) | Free
Quickly discover and switch Git projects from the status bar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Projects Switch logo

Projects Switch

Find and switch Git projects from the VS Code status bar.

  • Project — find Git projects, including nested repositories, with recently visited projects first.

Click the project button, type to search, and press Enter to select.

To keep your current window open, click the button on the right of a project row, labeled 在新窗口打开 (open in new window). It opens that project's last visited workspace or worktree in a new window. Selecting a row or pressing Enter keeps the usual switching behavior.

Each time you open the picker, it checks cached paths and shows the available projects without waiting for a full scan. A background scan then updates the open list while preserving your search and active project. A loading indicator appears while the scan runs. Scans also run at startup by default, when scan settings change, and when you run Refresh Projects.

Before opening a project, the extension checks its paths again and updates the saved path. If the last-visited directory is unavailable, it tries the main directory, then the other known worktrees. If none are accessible Git directories for that project, it shows a warning and keeps the current window open.

Simulated Projects Switch demo: click the status bar project name, search by name or path, and press Enter to switch.

Simulated demo with example projects. The picker shows project paths and recent visit times; the checkmark identifies the current project.

Source code · Report an issue

Shortcuts

Action macOS Windows / Linux
Switch Project Option+P Alt+P

Customize these in Keyboard Shortcuts by searching for Projects Switch. Add Project and Refresh Projects are available in the Command Palette.

Configuration

Set the directories to scan in VS Code settings:

{
  "projectsSwitch.projects.scanRoots": [
    "$WORKSPACE"
  ],
  "projectsSwitch.projects.excludes": [
    "**/archived/**"
  ],
  "projectsSwitch.projects.maxDepth": 4
}
  • scanRoots: absolute directories, optionally using environment variables. $WORKSPACE must be an environment variable available to VS Code, not the currently opened folder. Relative paths, ~, and filesystem roots are not supported.
  • excludes: directory patterns to skip.
  • maxDepth: maximum scan depth; the scan root is depth 0.

Moving from DevHop

Install sunzhongyi.projects-switch and uninstall DevHop. Copy any projectSwitcher.projects.* settings to projectsSwitch.projects.*. Recently visited and manually added projects are not transferred. Branch switching is handled by VS Code’s built-in Source Control Checkout.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft