I built a VSCode extension: Git Worktree Switcher
说明与用途
作者开发了一个 VS Code 扩展,支持在同一 IDE 窗口内即时切换 Git worktree,简化多分支开发流程。
问题
Switching between multiple Git worktrees in VS Code was manual and cumbersome, requiring multiple windows or several steps.
结果
Developers can now switch between multiple worktrees instantly within a single VS Code window, reducing context switches and improving productivity.
工作流
- Install the Worktree Switcher extension from the Marketplace
- Open a repository with multiple worktrees
- Use the status bar picker to select a worktree or create a new one
- Pin favorite worktrees for quick access
- Navigate between worktrees using Cmd/Ctrl+Shift+1–9
- Remove worktrees directly from the picker
证据
Switch between worktrees directly from the bottom status bar
Jump directly between worktrees with Cmd/Ctrl + Shift + 1–9
- 记录日期: 2026-09-18T23:00:24.438Z