otak-clipboard
  
    Copy files and directories to your clipboard directly from VS Code, formatted as markdown—perfect for AI-powered development workflows.
  
🔐 Security Feature: Automatic Sensitive Data Detection
otak-clipboard now includes intelligent detection of API keys, tokens, and other sensitive information. When copying code, the extension automatically scans for:
- API Keys & Tokens: AWS, Azure, GCP, OpenAI, Anthropic, GitHub, Stripe, and more
- Authentication Credentials: JWT tokens, OAuth tokens, passwords, and private keys
- Connection Strings: Database URLs and webhook endpoints
When sensitive data is detected, you'll receive a warning with options to:
- Mask all sensitive data automatically
- Review and mask items individually
- Continue without masking (with confirmation)
This feature helps prevent accidental exposure of credentials when sharing code with AI assistants or colleagues. You can disable this feature or customize detection patterns in the extension settings.
Usage
For Explorer:

- Right-click any file or folder in the VS Code Explorer.
- Select one of these commands from the context menu:
- Copy File (single file)
- Copy Folder Contents (immediate children only)
- Copy All Folder Contents (recursive copy including all subdirectories)
 
- The selected content is instantly formatted as markdown and copied to your clipboard.
For Tabs:

- Right-click any editor tab or the tab bar area.
- Choose from:
- Copy Current Tab (active tab only)
- Copy All Opened Tabs (all tabs across all groups)
 
- Tab contents are formatted as markdown with syntax highlighting and copied to your clipboard.
Features
otak-clipboard streamlines sharing code with AI assistants by intelligently formatting file contents as markdown.
Key Features
Requirements
- Visual Studio Code 1.90.0 or higher
Installation
- Install from the VS Code Marketplace or via VSIX package
- Right-click files, folders, or editor tabs to access commands
- Copied content is instantly available as markdown on your clipboard
Extension Settings
Customize otak-clipboard behavior through VS Code settings:
General Settings
- otakClipboard.maxCharacters: Maximum characters per copy (default: 400000)
- otakClipboard.maxFiles: Maximum files per operation (default: 400)
- otakClipboard.excludeDirectories: Directories to always exclude (e.g.,- .git,- node_modules,- out)
Security Settings
- otakClipboard.detectSensitiveData: Enable/disable sensitive data detection (default: true)
- otakClipboard.maskShowPartial: Show partial values when masking (e.g.,- sk-proj-****xyz) (default: true)
- otakClipboard.sensitiveDataPatterns: Add custom detection patterns for your specific needs
File Detection Settings
- otakClipboard.knownTextExtensions: File extensions to treat as text
- otakClipboard.knownBinaryExtensions: File extensions to treat as binary
- otakClipboard.binaryDetectionRules: Fine-tune binary file detection:- 
- nullByteCheck: Enable null byte detection
- controlCharRatio: Maximum control character ratio for text files
- controlCharCheck: Enable control character checking
 
Commands
- otakClipboard.copyCurrentTab: Copy active editor tab
- otakClipboard.copyAllOpenedTabs: Copy all open tabs (all groups)
- otakClipboard.copyFile: Copy selected file from Explorer
- otakClipboard.copyFolder: Copy folder contents (shallow)
- otakClipboard.copyFolderRecursive: Copy folder contents (recursive)
Clipboard Output Example

Notifications
Clear feedback for every action:
- Copy Success: - 
- Shows which files/folders were copied
- Auto-dismisses after 5 seconds
 
- Limit Exceeded: - 
- Explains why the operation was limited
- Provides guidance on adjusting settings
 
Check out our other VS Code extensions:
Real-time system monitoring in VS Code. Track CPU, memory, and disk usage with 1-minute averages in the status bar.
One-click proxy configuration for VS Code and Git. Perfect for switching between network environments.
AI-powered commit message generation supporting 25 languages with upcoming PR management features.
Quick restart controls for Extension Host and VS Code window from the status bar.
Display two time zones simultaneously in VS Code. Essential for global collaboration.
Boost productivity with the Pomodoro Technique. Balance focused work sessions with scheduled breaks.
Create a distraction-free coding environment. Hide non-essential UI elements and customize your minimal workspace.
License
MIT License - see LICENSE for details.
Visit the GitHub repository for more information.
Part of the otak-series VS Code extensions.