🌲 YewIndex is a Visual Studio Code extension that helps you centralize and browse your local Git repositories and VS Code Workspaces.
Say goodbye to clicking through your file explorer to find projects. YewIndex provides a clear tree view of all scanned projects in VS Code, allowing you to quickly switch projects/workspaces with a single click without leaving your editor.
- Recursive Scanning: Configure multiple root directories (e.g.,
~/Projects,D:\Work), and YewIndex will recursively find all Git repositories within them. - Smart Recognition: Automatically identifies
.gitdirectories and.gitfiles (supports submodules and worktrees). - Tree View: Displays your repositories in a neat, hierarchical tree structure with state persistence (remembers expanded folders).
- Repository Preview: Preview repository README without switching your current window context.
- Quick Actions:
- Open repository in a new window or current window.
- Add repository folder to the current workspace.
- Open in integrated terminal.
- Copy repository path.
- Exclude Directories: Supports excluding specific dependency/output folders (e.g.,
node_modules). Common folders are excluded by default, and you can customize this in the settings.
- Workspace Discovery: Scans for
.code-workspacefiles in configured paths. - Rich Preview: Click a workspace to see a read-only preview without directly opening it.
- View included folder list.
- Browse workspace settings.
- Check recommended extensions.
- One-Click Open: Click to open the workspace immediately.
- Global Search: Press
Ctrl+Alt+P(Mac:Cmd+Alt+P) to instantly search and open any repository or workspace by name or path.
- Activity Tracking: Automatically records repositories and workspaces you've accessed through YewIndex.
- Quick Access: Quickly jump back to your most used projects in the "Recent" view.
- Install the extension from the Visual Studio Marketplace.
- Click the YewIndex icon in the Activity Bar on the left.
- Follow the guidance in the Repositories and Workspaces views to configure your project folders.
- Wait for the scan to complete and enjoy an organized project view built right into VS Code!
YewIndex is highly configurable to fit your workflow. You can access these settings by going to File > Preferences > Settings and searching for YewIndex.
yewindex.repo.roots: List of root directories to scan for Git repositories.yewindex.repo.exclude: Glob patterns for directories to exclude during scanning (defaults include.git,node_modules,dist, etc.).yewindex.repo.showNested: Whether to display nested Git repositories (default:false).yewindex.repo.itemActivation: Behavior when clicking a repo item (singleClickordoubleClick).
yewindex.workspace.roots: List of root directories to scan for.code-workspacefiles.yewindex.workspace.exclude: Glob patterns for directories to exclude.yewindex.workspace.itemActivation: Behavior when clicking a workspace item (preview,open, orpreviewOnly).yewindex.workspace.preview.openIn: Where to open the preview document (activeeditor orbesidesidebar).
yewindex.open.targetWindow: Default behavior when opening a repo/workspace (newWindow,currentWindow, orauto).yewindex.recent.maxItems: Maximum number of items to keep in the Recent history.yewindex.refresh.mode: Auto-refresh strategy (onOpen,onFocus,interval,manual).yewindex.view.rememberExpandState: Whether to restore the expanded state of tree nodes on startup (default:true).
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type YewIndex to use the following commands:
YewIndex: Search: Quick search for repositories and workspaces (Ctrl+Alt+P).YewIndex: Scan Repositories: Force a re-scan of repository roots.YewIndex: Scan Workspaces: Force a re-scan of workspace roots.YewIndex: Refresh Views: Refresh all views.YewIndex: Manage Repo Roots: Manage repository scanning roots.YewIndex: Manage Workspace Roots: Manage workspace scanning roots.
YewIndex currently has no plans for development of editing features. Instead, it focuses on browsing functionality. I believe that after opening a workspace in VS Code, using the native editing features directly is a better choice, so I won't reinvent the wheel.
Requirements:
- Clone the repository:
git clone https://github.com/YewFence/YewIndex.git cd YewIndex - Install dependencies:
pnpm install
- Compile the extension:
pnpm run compile
- Package into a VSIX file:
This will generate a
pnpm run package
.vsixfile in the root directory, which you can install in VS Code via "Install from VSIX...".
MIT