Quickly copy entire file contents or a selection of code to markdown for easy sharing to LLMs and elsewhere. Right click file in sidebar, right click in code or use VS Code commands.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Quickly copy entire file contents or a selection of code to markdown for easy pasting to LLMs or anywhere else. Right click file in sidebar, right click in code or use VS Code commands.
Features
Copy Entire File as Markdown: Right-click on a file in the sidebar to copy the entire file as a markdown code block.
Copy Selection as Markdown: Right-click in the editor to copy the selected text as a markdown code block.
Copy Entire File from Editor: Right-click in the editor to copy the entire file as a markdown code block.
VS Code Commands: Use commands to copy selected text or the entire file as a markdown code block.
Markdown Output
When you use this extension, the copied content will be formatted with the full path and filename, followed by the file extension in the markdown code block.
For example, if you copy the contents of a file located at src/app/user/page.tsx, the output will look like this: