IntelliJ plugin that collects Java/Kotlin code context for AI assistance by analyzing imports and gathering related files.
- Smart Import Analysis - Follows import chains to collect related local files
- Java & Kotlin Support - Full PSI integration with K2 compatibility
- AI-Optimized Output - Formatted with line numbers and file headers
- Configurable Filtering - Exclude files with glob patterns
- Clipboard Integration - Auto-copies formatted output
File → Settings → Plugins → Search "Code Collector"
- Download JAR from releases
File → Settings → Plugins → Install Plugin from Disk- Restart IntelliJ
- Right-click files →
Code Collect (Smart) - Shortcut:
Ctrl+Shift+G - Follows imports to collect related files
- Right-click files →
Code Collect (Direct) - Shortcut:
Ctrl+Shift+D - Collects only selected files without imports
- Right-click in Project Explorer →
Code Collect (All) - Collects entire codebase (respects ignore patterns)
File → Settings → Tools → Code Collector
Configure ignore patterns (glob format):
target/**,build/**- Build outputs.gradle/**,.idea/**- Tool directories*.jar,*.log- Archives and logs