Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Todo PromptNew to Visual Studio Code? Get it now.
Todo Prompt

Todo Prompt

Simon

|
1 install
| (0) | Free
Shows clickable buttons above TODO comments in your code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Todo Prompt

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

  1. Open any source file with TODO comments
  2. Look for the "✓ Todo" button that appears above each TODO comment (via CodeLens)
  3. Click the button
  4. A notification confirms the prompt has been copied to your clipboard
  5. Paste the prompt into your favorite AI chatbot (ChatGPT, Claude, etc.)
  6. 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.

Known Issues

None at this time.

Release Notes

0.0.1

Initial release of Todo Prompt extension with:

  • CodeLens integration for TODO detection
  • One-click prompt generation
  • Clipboard integration
  • LLM-optimized formatting

Enjoy! Happy coding with AI assistance!

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