Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy File as Markdown (with Filename)New to Visual Studio Code? Get it now.
Copy File as Markdown (with Filename)

Copy File as Markdown (with Filename)

Jan Karres

|
112 installs
| (1) | Free
Copy selected files as markdown with filename to the clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy File as Markdown for VS Code

A Visual Studio Code extension that allows you to copy selected files in the Explorer as markdown with filename to the clipboard.

The extension is particularly useful for quickly and easily exporting multiple files with paths for LLMs like ChatGPT or Claude (if you do not use an AI coding integration/editor like Cursor or GitHub Copilot).

Features

  • Copy as Markdown: Easily copy the content of selected files or folders as markdown with filename to the clipboard.
  • Context Menu: Right-click on files, multiple selected files, or folders in the Explorer to access the "Copy as markdown with filename" option.

Usage

  1. Install the Extension:

    • Search for "Copy File as Markdown for VS Code" in the Visual Studio Code Marketplace.
    • Click `Install` to add the extension to your VS Code environment.
  2. Use the Extension:

    Copy open file content as markdown:

    • To copy the content of the currently open file in the editor along with its filename in markdown format, use the keyboard shortcut alt+cmd+c.

    Copy selected file(s) as Markdown:

    • Open the Explorer view in VS Code.
    • Right-click on a file, multiple selected files, or a folder.
    • Select Copy as markdown with filename from the context menu to copy the file paths as markdown.
    Context menu screenshot

Configuration

  • Change the keyboard shortcut for Copy open file content as markdown" Change key bindings screenshot

License

This project is licensed under the MIT License.

Thank you for using and contributing to the extension!

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