VirtualTabs is a VS Code extension that provides custom "Virtual File Directories" outside of your native file system. Unlike standard directories, VirtualTabs helps you create independent logical file groups based on your current development theme, while also providing AI-Ready Coding Context for quick copying. It is perfectly suited for Monorepo projects or large-scale applications using MVVM or MVC architectures.
| Feature | Native VS Code Tabs | VirtualTabs Extension |
|---|---|---|
| Persistence | Cleared on session close | Saved permanently per workspace |
| Grouping | Folder-based only | Logic-based (Cross-directory support) |
| AI Context | Hard to gather manually | One-click context generation for LLMs |
In MVC/MVVM or large-scale projects, related files are often scattered across deep directory structures, making switching a repetitive chore:
β Traditional File Structure:
βββ config.json (Root Config)
βββ styles/theme.css (Style Layer)
βββ src/components/ (View Layer)
βββ tests/__tests__/ (Testing Layer)
β
Theme-Based Virtual Directory:
π Feature: Theme System
βββ ππ Configuration
β βββ config.json
βββ ππ Style Definitions
β βββ theme.css
βββ ππ Components (View Layer)
β βββ ThemeProvider.tsx
β βββ π Line 45: Context setup
βββ ππ Unit Tests (Logic/Testing)
β βββ theme.test.ts
In the era of Copilot and LLMs, precise context is the key to high-quality results:
- Curated Selection: Create groups with only the files relevant to your current task.
- One-Click Export: Convert entire groups into AI-friendly Markdown blocks (v0.3.0).
- Reduced Noise: Isolate core logic to help AI focus and prevent hallucinations.
- Persistent Context: Your curated AI prompts and file sets stay ready even after a restart.
"VirtualTabs helps me define the exact boundary of what the AI should see."
- π Cross-Directory Grouping β Organize files from anywhere, breaking free from folder constraints
- π Task-Oriented Bookmarks β Mark specific lines of code within your groups for quick navigation
(v0.2.0) - π Sub-Groups & Nesting β Create hierarchical structures for better organization
(v0.3.0) - π€ AI Context Export β One-click copy all files as LLM-ready context
(v0.3.0) βΆοΈ Script Execution β Inline run button for.batand.exefiles(v0.3.2)- πΎ Portable Config β Settings saved to
.vscode/virtualTab.jsonfor team sharing(v0.3.2) - π AI Agent Integration (MCP) β Connect AI agents (Cursor, Copilot, Claude, Kiro, Antigravity) to manage your groups programmatically via the Model Context Protocol
(v0.4.0)
- π Smart Copy Menu β Unified copy options for files and groups
(v0.3.0) - π Directory Drag & Drop β Drag folders to add all files recursively
(v0.3.0) - βοΈ Full Clipboard Operations β Cut/Copy/Paste support for files and groups
(v0.3.0) - β΅ Group Reordering β Easily move groups up and down via context menu
(v0.3.2) - π Smart Organization β Auto-group by extension, date, or sort by various criteria
v0.4.0 brings full AI agent integration β let your AI assistant manage VirtualTabs groups directly:
- π MCP Server Integration β A fully bundled MCP server (
dist/mcp/index.js) ships with the extension, exposing 15+ tools for AI agents to create groups, manage files, handle bookmarks, and explore the project. - π‘οΈ Agent Skill Generation β One command generates a tailored skill file for your AI tool (Cursor
.mdc, orSKILL.mdfor Copilot, Claude, Antigravity, Kiro). Includes a four-layer safety decision tree and a CRITICAL CONCEPT warning that VirtualTabs groups are purely virtual β no files are ever moved on disk. - βοΈ MCP Config Panel β Get ready-to-paste MCP server configuration for your AI tool with a single click.
- π¦ Bundled CLI Fallback (
vt.bundle.js) β A self-contained CLI co-located with each generated skill file provides a last-resort editing path when MCP tools are unavailable.
| Cursor | Antigravity (Google) | Kiro |
|---|---|---|
![]() |
![]() |
![]() |
| Configure MCP in Cursor settings | Configure MCP in Antigravity environment | Configure MCP in Kiro IDE |
Use the MCP Config Panel (command:
VirtualTabs: Show MCP Config) to generate ready-to-paste configuration for your chosen AI tool.
v0.3.6 introduced powerful multi-select copy & system improvements:
- π― Multi-select Copy Support (Core Update) β Select multiple files or groups and copy everything at once.
- One-click copy for: File Names, Relative Paths, and Absolute Paths.
- Enhanced "Copy Context for AI" handles mixed selections (files + groups + bookmarks) with automatic content deduplication.
- π¨ Smart Unified Menu β Replaced redundant menus with a single, intelligent copy submenu.
- π§ Enhanced Reliability β Implemented robust cycle detection and improved type safety using
instanceofchecks for smoother performance in large projects.
v0.3.3 enhanced user experience:
- βοΈ Configurable Confirmations β Toggle delete confirmation dialogs via settings.
- π Better i18n β Fully localized messages for English, Traditional Chinese, and Simplified Chinese.
- Open VS Code
- Press
Ctrl+Shift+X(orCmd+Shift+X) - Search for VirtualTabs and click Install
- Click the VirtualTabs icon in the Activity Bar (left sidebar)
- Right-click in the panel β Create New Group
- Drag files from Explorer into your group
- Create/Rename: Right-click panel or groups to manage.
- Sub-Groups: Right-click a group β Add Sub-Group (or drag one group into another) to create nested structures.
- Auto-Sync: The built-in "Open Editors" group automatically tracks your open tabs.
- Open/Close All: Includes files in sub-groups recursively.
- Drag & Drop:
- Files: Drag files from Explorer into groups.
- Folders: Drag folders to recursively add all files inside.
- Multi-select: Hold
Ctrl/Cmdto select multiple files to drag at once.
- Right-click any line of code β Add Bookmark to VirtualTabs
- The bookmark appears nested under the file in your group.
- Click to jump instantly to that exact line.
- Edit label/description to document why this line is important.
The "Killer Feature" for LLM workflows.
- Setup a group with all relevant files for your current task.
- Right-click the group β Copy... β Copy Context for AI.
- Paste into ChatGPT/Claude.
- Smart: Binary files are skipped. Large files (>50KB) are opened for review.
- Clean: All code is formatted in markdown blocks with file paths.
Everything you need in one place. Right-click any file or group:
- Copy Name/Path: Standard path copying.
- Copy Context: Get the code content.
- Multi-select: Select 5 files β Copy Paths β Get a list of 5 paths.
- Sort: Right-click group β Sort Files (Name, Path, Extension, Date).
- Auto-Group: Right-click group β Auto Group by Extension/Date.
- Reorder: Use Right-click β Move Up/Down to manually order groups.
- Monorepo Management: Group related configs and logic across multiple packages.
- Architecture-Oriented Dev: Organize by logic layers (MVC/MVVM) rather than physical disk paths.
- AI Context Curation: Build precise file sets for LLMs to maximize prompt accuracy.
- Code Review (CR): Centralize all changed files for a specific feature for efficient review.
- Micro-Tutorials: Create curated code paths for onboarding or technical reference.
- Group by Task, Not Folder: Think about what you're working on, not where files live
- Use Sub-Groups: Organize large groups with nested structure (v0.3.0)
- Use Bookmarks for Logic Flow: Mark key decision points in your code
- Create AI Context Groups: Group 5-10 files for focused AI assistance
- Export Before Prompting: Use "Copy Context for AI" before asking LLMs
- Review and Refine: Periodically clean up unused groups to stay organized
Check:
- The extension is enabled
- Your VS Code version is 1.75+
- VirtualTabs has its own icon in the Activity Bar (left sidebar)
Right-click any group β Add Sub-Group. You can also drag a group onto another group to nest it.
It reads all files in the group (including sub-groups), formats them as markdown code blocks, and copies to clipboard. Binary files are automatically skipped.
Currently, groups are saved in workspaceState (local) or .vscode/virtualTab.json (shareable). v0.3.2 introduced support for .vscode storage!
Yes! Bookmarks track file paths and will update if you rename files within VS Code.
Simply drag a folder from the Explorer panel onto a group. VirtualTabs will automatically add all files recursively, skipping the directory entry itself.
We welcome community contributions!
Interested in code contributions? Please check DEVELOPMENT.md for:
- Environment setup
- Debugging & publishing guide
- Module structure
- Common error troubleshooting
- π Bug Reports β GitHub Issues
- β¨ Feature Requests β GitHub Discussions
- π§ Code Contributions β Fork and PR
The perfect partner for VirtualTabs.
While VirtualTabs organizes your Context (Files), Quick Prompt organizes your Instructions (Prompts).
- VirtualTabs: Defines where the AI should look (File Groups).
- Quick Prompt: Defines what the AI should do (Prompt Management).
Together, they create the ultimate AI-coding workflow.
Get Quick Prompt on VS Code Marketplace | Open VSX Registry
π See CHANGELOG.md for full release history.
- π MCP Server β Bundled MCP server enabling AI agents to manage groups via the Model Context Protocol
- π‘οΈ Agent Skill Generation β Generates target-specific skill files for Cursor, Copilot, Claude, Kiro, and Antigravity
- βοΈ MCP Config Panel β One-click config snippet for every supported AI client
- π¦ Bundled CLI Fallback β Self-contained
vt.bundle.jsas a last-resort editing path when MCP is unavailable
- π― Multi-select Copy Support β All copy commands now support selecting multiple files/groups
- π¨ Unified Copy Menu β Consolidated 4 duplicate submenus into one smart menu
- π§ Enhanced Reliability β Improved type safety with
instanceofchecks and Set-based cycle detection - π Bug Fixes β Fixed command namespace conflicts and bookmark context handling
If you find this extension helpful, please consider supporting the development!
Licensed under MIT License. Free for personal and commercial use.
Organize smarter, code faster. π







