Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code CollectorNew to Visual Studio Code? Get it now.
Code Collector

Code Collector

Code Collector

|
12 installs
| (2) | Free
Gather code context for AI based on imports
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Collector - VS Code Extension

Gather your codebase context for AI assistants by following import dependencies.

Features

  • Smart Import Following: Automatically collects files based on import statements
  • Multi-Language: TypeScript, JavaScript, Java, Kotlin, Python
  • Two Modes:
    • Import-based collection (follows dependencies)
    • Collect entire workspace (with filtering)
  • AI-Ready Output: Formatted with file paths and line numbers
  • One-Click Copy: Results automatically copied to clipboard

Usage

  • Keyboard: Ctrl+Shift+G (Cmd+Shift+G on Mac)
  • Context Menu: Right-click files/folders → "Code Collect"

Output Format

// src/utils/helper.ts (L1-L25)
[your code here]
// src/main.ts (L26-L50)
[your code here]

Perfect for sharing code context with ChatGPT, Claude, and other AI assistants.

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