Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>MDizeNew to Visual Studio Code? Get it now.
MDize

MDize

Jorcelino Junior

|
17 installs
| (0) | Free
| Sponsor
Easily copy source files from VSCode Explorer, perfectly formatted as Markdown for LLMs (ChatGPT, Gemini, Claude), code sharing, and reviews. With or without line numbers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Buy Me a Coffee

MDize Logo

MDize 📋

Effortlessly copy code into perfect Markdown for LLMs & sharing 🚀

Tired of manually formatting code snippets for ChatGPT, Claude, or GitHub comments? That's exactly why MDize was created! It streamlines this by letting you grab files or folders directly from VS Code, instantly converting them into clean, Markdown-ready blocks—with or without line numbers.
Focus on your prompts and reviews, not on escaping backticks or numbering lines by hand.

Buy Me a Coffee Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Rating GitHub Stars License

MDize extension in action, copying multiple files


🎯 Features

  • Copy with or without line numbers – perfect for AI prompts or clean snippets
  • Multi‑file & folder support – select anything, the extension walks sub‑folders for you
  • Markdown‑ready formatting – code fences are auto‑tagged with the correct language
  • Language‑agnostic – works with TypeScript, Python, Java, Markdown, YAML … see full list below
  • Smart binary & size filter – skips binaries or files > 3 MB to keep the clipboard slick
  • Blazing fast & lightweight – zero runtime dependencies, minimal footprint
  • Instant feedback – toast messages confirm exactly what was copied

🖥️ Visual Examples

MDize integrates seamlessly into your VS Code workflow, whether you're in the Explorer or working with open editor tabs:

1. Accessing MDize from the File Explorer:

MDize context menu in VS Code File Explorer
Figure 1 – Right-click any file or folder in the Explorer to quickly access MDize's "Copy Content" and "Copy Content with Lines" commands.

2. Accessing MDize from an Editor Tab:

MDize context menu on an open editor tab title
Figure 2 – You can also right-click directly on an open editor's tab title to use MDize (e.g., "Copy Content") on the active file.

📄 Sample Output (what you get on the clipboard)

Result from "MDize: Copy Content" (Raw code, no line numbers)
### `src/hello.js`

```javascript
console.log('MDize rocks!');
...
console.log('Bye, world!');
```

Result from "MDize: Copy Content with Lines" (Includes line numbers)
### `src/hello.js`

```javascript
01: console.log('MDize rocks!');
02: ...
12: console.log('Bye, world!');
```

Line Number Padding Example (from "MDize: Copy Content with Lines")
### `src/bigFile.js`

```javascript
001: import mightyLib from 'mighty-lib';
002: ...
123: export default mightyLib;
```

⚙️ How to Install

  1. Open Extensions ↗ in VS Code (Ctrl+Shift+X).
  2. Search for “MDize” and click Install.
  3. Or install directly from the Marketplace.

🚦 Quick Start

Command Default Keybinding Where it appears
MDize: Copy Content Ctrl + Alt + C Context Menus (Explorer & Editor Tab)
MDize: Copy Content with Lines Ctrl + Alt + Shift + C Context Menus (Explorer & Editor Tab)
  1. Select one or more files/folders in the Explorer or focus an open editor tab.
  2. Trigger MDize by hitting the shortcut or using the context‑menu command.
  3. Paste the Markdown‑formatted result wherever you need it—done! 🎉

💡 Usage Scenarios

  • AI conversations – feed complete files (with numbered lines) to LLMs for accurate references.
  • Code reviews – share self‑contained snippets in GitHub comments without manual fencing.
  • Team chat – drop nicely formatted code in Slack, Teams, or Jira tickets.
  • Live demos – copy large examples quickly without worrying about binary artifacts sneaking in.

📌 Supported Languages

MDize recognises the following out‑of‑the‑box:

  • TypeScript / TSX
  • JavaScript / JSX / MJS
  • Python
  • Java
  • C / C++ / Header files
  • C#
  • Go
  • Rust
  • Ruby
  • PHP
  • Swift
  • Kotlin
  • HTML / XHTML
  • CSS / SCSS / Less
  • XML
  • JSON
  • YAML
  • Markdown
  • Shell scripts (.sh, .bash, .zsh, .fish)
  • SQL
  • GraphQL
  • Dockerfile
  • Plain text

(Any unknown but text‑based extension is still copied with a generic fence.)


❓ Frequently Asked Questions

Can I copy several files at once, including whole folders? Yes. Select any mix of files and folders—the extension recurses sub‑folders and concatenates all eligible files into a single Markdown block.
What happens with large or binary files? Files bigger than **3 MB** or detected as binary are silently skipped, and a warning toast tells you which ones were ignored.
How do I change the keybindings? Open **Keyboard Shortcuts (`Ctrl+K Ctrl+S`) → search “MDize”** and map the commands to any combination you prefer.

🤝 Contributing

Bug reports and PRs are very welcome! Head over to the issue tracker to get started.


🧑‍💻 Development

git clone https://github.com/jorcelinojunior/mdize.git
cd mdize
npm install
npm run watch     # incremental TypeScript build
  1. Press F5 in VS Code to launch an Extension Development Host.
  2. Hit the commands or keybindings inside the host window to test changes.
  3. Run unit + integration tests with npm test.

📃 License

Released under the MIT License – see LICENSE for details.


Made with 💙 in Brazil – enjoy friction‑free code sharing!


☕ Support This Project

If this extension has been helpful, consider supporting my work and keeping the magic alive!
Your contributions help maintain and improve tools like this one. 🌟

Buy Me a Coffee

Thank you for your kindness and support! 💜

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