CopyForLlm+ for VS CodeCopies selected files and folders - their structure and content - to the clipboard, formatted for pasting into Large Language Models (LLMs). This is the VS Code port of the CopyForLlm+ JetBrains plugin, itself a
fork of AykoSc/copyforllm, licensed under the Apache License 2.0 (see
UsageRight-click files/folders in the Explorer, select Copy for LLM+, and paste into your LLM prompt. The output includes a file tree representing the selection within the workspace folder and the content of the included files, each preceded by a header comment indicating its path relative to the workspace folder. Selecting items from several folders of a multi-root workspace copies one such block per folder. Excluding sensitive files and foldersRight-click a file or folder in the Explorer and choose Exclude from Copy for LLM+. Its workspace-relative path is
added to the exclusion patterns; right-clicking it again offers Include in Copy for LLM+ to undo that. If some
other pattern - a parent folder, or a name pattern like For patterns rather than single items, edit the CopyForLlm+: Excluded Patterns setting ( A match - whether it's a single file or a whole folder - always stays visible in the file tree, so the LLM still
knows it exists. In the content section it gets a short note that it was skipped (e.g.
Hiding binary files from the treeCopyForLlm+: Hide Binary Files In Tree ( This only affects the tree. The content section still names every binary file and notes that its content was skipped. Differences from the JetBrains plugin
Development
Open this |