VS Code Extension

AI Documentation for
Legacy Code

Stop wasting hours manually documenting old codebases. LegacyDoc AI auto-generates JSDoc, inline comments, Markdown docs, and Mermaid architecture diagrams — preserving your original code style.

Free: 5 generations/day. No credit card required.

The Problem Every Developer Knows

Zero Comments, Zero Docs

Inherited a 50K-line project with no JSDoc, no README, and variable names like tmp2. Sound familiar?

Days to Understand Architecture

New team members spend days (or weeks) tracing call chains through legacy spaghetti before making their first change.

Manual Docs = Never Happens

Writing JSDoc by hand for 200+ functions? Nobody has time for that. So the docs never get written.

One Click. Full Documentation.

Right-click any file or folder, and let AI do the heavy lifting.

01 Inline JSDoc & Comments

Auto-insert JSDoc above functions, add explanatory inline comments. Preserves your legacy code style — no unwanted modernization.

02 Markdown Documentation

Generate standalone .md files with function signatures, parameter descriptions, usage examples, and module overviews.

03 Mermaid Architecture Diagrams

Automatically map out module dependencies, class hierarchies, and call flows as Mermaid diagrams — rendered right in your sidebar.

04 Multi-Model Support

Use your own API key for Claude, GPT, Grok, or any OpenAI-compatible endpoint. Zero API costs from us.

How It Works

1

Install & Configure

Install from VS Code Marketplace. Add your AI model API key in settings.

2

Select & Generate

Right-click a file or folder, choose "Document This File." Pick inline, markdown, or both.

3

Review & Apply

Preview generated docs in the sidebar. One click to apply inline or save as markdown.

Simple, Fair Pricing

Start free. Upgrade when you need more.

Free

$0 forever

  • 5 generations per day
  • Inline JSDoc + Markdown + Mermaid
  • Claude / GPT / Grok / Custom models
  • Your own API key (zero cost from us)
Install Free
Most Popular

Pro

$29 one-time

  • Unlimited generations
  • Custom prompt templates
  • Batch file processing
  • Priority support
  • Activate on up to 3 devices
Get Pro — $29

Frequently Asked Questions

Which AI models are supported?

Claude (Anthropic), GPT (OpenAI), Grok (xAI), and any OpenAI-compatible endpoint. You bring your own API key — we never store or proxy your data.

What languages does it support?

JavaScript, TypeScript, and Python out of the box. The AI can handle most languages — more first-class support coming soon.

Will it modify my code style?

No. LegacyDoc AI is specifically designed to preserve your original code style. It adds documentation without refactoring, modernizing, or reformatting anything.

How does the Pro license work?

After purchasing, you receive a license key via email. Enter it in VS Code settings to unlock unlimited generations and all Pro features. One-time payment, no subscription.

Can it handle large codebases?

Yes. Files are automatically chunked (2000 lines per batch) to stay within token limits. It works with projects of any size.

Ready to document your legacy code?

Install for free. No credit card required.

Install from VS Code Marketplace