This VS Code extension allows you to easily extract the contents of selected files or folders and copy them as Markdown-formatted text to your clipboard.
Features
Extract content from selected files or folders in the VS Code Explorer
Copy extracted content as Markdown-formatted text to the clipboard
Configurable file inclusion and exclusion patterns
Option to respect .gitignore rules
Installation
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "Files to Markdown Extractor"
Click Install
Usage
Right-click on a file or folder in the VS Code Explorer
Select "Copy as Markdown" from the context menu
The contents of the selected file(s) or folder(s) will be copied to your clipboard in Markdown format
Configuration
You can customize the extension's behavior through VS Code settings:
filesToMarkdownExtractor.excludes: An array of glob patterns for files to exclude
filesToMarkdownExtractor.includes: An array of glob patterns for files to include
filesToMarkdownExtractor.respectGitignore: Whether to respect .gitignore rules (default: true)