code2prompt
Generate AI-ready prompts from a codebase (extract, filter, and format code for LLMs). More information: https://code2prompt.dev/docs/how_to/filter_files/.
- Generate a prompt for the current project and copy it to the clipboard (default behavior):
code2prompt
- Include only specific files and exclude a directory:
code2prompt "" ""
- Write the prompt to a file instead of the clipboard:
code2prompt
- Produce structured JSON output:
code2prompt json
- Use a custom Handlebars template when generating the prompt:
code2prompt
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
