|
VS Code extension that collects all your project files into a single text file.
|
Features
- 📋 Collect all project files into a single text file
- ⚙️ Flexible configuration - choose which extensions to include
- 🎯 Smart ignoring - excludes binary files, node_modules, etc.
- 🌍 Support for 30+ programming languages
- 📁 Preserves project structure with clean headers
Installation
- Open VS Code
- Press
Ctrl+Shift+X to open extensions
- Search for "Copy Project to TXT"
- Click "Install"
Or install from the command line:
code --install-extension Yalkee.copy-project-to-txt
Usage
- Open your project in VS Code
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Enter the command
Copy Project to TXT: Scan Project
- The file
project_export.txt will appear in your project root
Configuration
After the first run, a settings.json file is created in your project root:
{
"extensions": {
".js": true,
".ts": true,
".py": true,
".txt": false,
"...": "... etc"
},
"ignorePatterns": ["node_modules", "dist", "build"],
"ignoreFiles": ["package-lock.json", ".DS_Store"],
"ignoreExtensions": [".png", ".jpg", ".mp3"]
}
Settings Parameters
- extensions - file extensions:
true = include, false = exclude
- ignorePatterns - folders to ignore
- ignoreFiles - specific files to ignore
- ignoreExtensions - extensions to ignore
Commands
Copy Project to TXT: Scan Project - starts collecting all files
Copy Project to TXT: Open Settings - opens the settings file
Supported Extensions
JavaScript (.js, .jsx), TypeScript (.ts, .tsx), Python (.py), Java (.java), C++ (.cpp, .h), C# (.cs), PHP (.php), Ruby (.rb), Go (.go), Rust (.rs), HTML (.html), CSS (.css, .scss), JSON (.json), XML (.xml), Markdown (.md), SQL (.sql), YAML (.yml, .yaml), Shell (.sh, .bash), Batch (.bat, .cmd), Gradle (.gradle), Vue (.vue), Svelte (.svelte) and more.
Versions
v0.1.0 : Original Version
× Basic project scanning functionality
× Collect files into a single text file
× Header format "--- File: [name] ---"
× Simple ignore system using regular expressions
v1.0.0 : Major Update
× Completely redesigned settings system (settings.json with boolean values)
× New header format "######### File: [name] #########"
× Fixed extra spacing and line breaks
× Added "Open Settings" command for quick access
× Simplified ignore system (folders, files, extensions)
× Support for 30+ popular extensions
× Automatic settings file creation on first run
× Improved performance and code optimization
× Updated command interface
× v1.0.1 : light minor
↪︎ README.md improvements
× v1.0.2 : light minor
↪︎ README.md improvements x2