A VS Code extension that makes it easy to send TODO comments to AI chatbots for assistance. With a single click, generate an LLM-optimized prompt containing your code context and copy it to your clipboard.
Features
CodeLens Buttons Above TODOs: Displays a clickable "✓ Todo" button above every TODO comment in your code
One-Click Prompt Generation: Click the button to generate a structured prompt with:
File path and name metadata
Line number of the TODO
Full source code content
Clear instructions for AI models
Clipboard Ready: Automatically copies the formatted prompt to your clipboard
LLM-Optimized Format: Uses structured tags designed for AI chatbots like ChatGPT
Works with Multiple Languages: Supports TypeScript, JavaScript, Python, Java, C#, C++, C, Go, Rust, Ruby, PHP, and more
How to Use
Open any source file with TODO comments
Look for the "✓ Todo" button that appears above each TODO comment (via CodeLens)
Click the button
A notification confirms the prompt has been copied to your clipboard
Paste the prompt into your favorite AI chatbot (ChatGPT, Claude, etc.)
The AI will have full context including the code, file info, and line number
Prompt Template
The generated prompt includes:
File metadata: Path, name, and line number of the TODO
Source code: The full file content wrapped in XML tags for clarity
Clear instructions: A direct request to implement the TODO comment
Example format:
## Task: Complete TODO Comment
<metadata>
<file_path>src/components/button.ts</file_path>
<file_name>button.ts</file_name>
<line_number>42</line_number>
</metadata>
<source_code>
[full file content]
</source_code>
### Instructions:
Please review the TODO comment on line ...
Requirements
VS Code 1.50.0 or higher
Dev Container Setup
If you develop inside a GitHub Codespace or VS Code dev container, the repository includes a .devcontainer/devcontainer.json that installs the system libraries needed to run npm run test (VS Code's Electron-based test runner). Rebuild the container after pulling the latest changes to ensure the dependencies are installed.
Extension Settings
This extension doesn't require any configuration. It works automatically on any file with TODO comments.