Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>OneFileNew to Visual Studio Code? Get it now.
OneFile

OneFile

Mouhcine Khairat

|
1 install
| (0) | Free
Combine files and folders into a single AI-ready prompt — right from VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

VS Code License


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


Mouhcine Khairat

Author & Maintainer

MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft