Overview Version History Q & A Rating & Review
OneFile
Pack your project files into AI-ready prompts — in seconds.
Stop copying/pasting files manually. Right-click any file or folder in VS Code → get a perfectly formatted prompt for ChatGPT, Claude, Gemini, or any AI assistant.
What it does
Right-click any file or folder in the Explorer → Add to OneFile → paste the result into ChatGPT, Claude, Gemini, or any AI tool.
Plain text .txt
======== FILES ========
*** src/index.ts ***
<file content>
*** src/utils.ts ***
<file content>
Markdown .md
# Files
## src/index.ts
<code content>
Installation
Search OneFile in the VS Code Marketplace and click Install. Requires VS Code 1.85+.
Usage
Add files
Action
How
Add a single file or folder
Right-click in Explorer → Add to OneFile
Add multiple files
Ctrl+Click to select → right-click → Add to OneFile
Open the panel
Ctrl+Shift+P → OneFile: Open Panel
Folders are walked recursively . .gitignore rules and ignored directories are respected automatically.
Export
From the OneFile panel:
Button
Output
Copy to Clipboard
Plain-text prompt, ready to paste
Download .txt
onefile-output.txt
Download .md
onefile-output.md with fenced code blocks
Clear All
Resets the panel
Supported file types
View all supported extensions
Category
Extensions
Code
.js .jsx .ts .tsx .py .java .rb .php .go .rs .c .cpp .cs .swift .kt .scala .dart .lua .ex .r .pl
Web
.html .css .scss .sass .less .json .xml .yaml .graphql
Config
.env .toml .ini .tf .tfvars .hcl .proto .editorconfig
Documents
.pdf .docx .pptx .xlsx .xls
Text
.md .txt .tex .csv .tsv .sql
Shell
.sh .bash .zsh .fish .ps1 .bat .cmd
Frameworks
.vue .svelte .astro .razor .jsp .pug .hbs
Auto-skipped directories: node_modules · .git · dist · build · .next · __pycache__ · anything in .gitignore
Why OneFile?
No data leaves your machine — all processing is local
Respects your .gitignore — only the files you actually want
Persistent — your selections survive VS Code restarts
Credits
Built based on the OneFile
Contributors