A lightweight Visual Studio Code extension that copies content of all open files to clipboard with their relative paths. Perfect for sharing code snippets or creating quick backups.
Features ✨
📂 Copy content of all open files with one click
📍 Preserves file structure with relative paths
🚫 Automatically ignores unsaved/new files
⚡ Fast and lightweight (no dependencies)
Installation ⬇️
Open VS Code Extensions Marketplace (Ctrl+Shift+X)
Search for "TabSnap"
Click Install
Reload VS Code
Usage 🚀
Via Command Palette
Open multiple files
Open Command Palette (Cmd+Shift+P or Ctrl+Shift+P)
Type Copy All Tabs Content and press Enter
Via Menu
Open multiple files
Click ... in editor tab bar
Select "Copy All Tabs Content"
Example Output:
// app/models/user.py
class User:
def __init__(self, name: str, email: str):
self.name = name
self.email = email
def display_info(self):
print(f"User: {self.name} <{self.email}>")
// utils/helpers.py
import datetime
def get_current_date():
"""Returns current date in YYYY-MM-DD format"""
return datetime.datetime.now().strftime("%Y-%m-%d")
def format_name(first_name: str, last_name: str) -> str:
"""Formats full name from first and last name"""
return f"{first_name} {last_name}".title()