Code2SummarizeA powerful VS Code extension to summarize and document your code projects with advanced glob pattern support for precise file selection. 🌟 What's New in v0.2.0
Features
Installation
Or install from VS Code Marketplace Usage
ConfigurationConfigure the extension through VS Code settings (File > Preferences > Settings > Extensions > Code2Summarize) New Configuration Options (v0.2.0)
|
| Pattern | Description |
|---|---|
**/*.js |
All JavaScript files recursively |
src/**/*.{js,ts} |
JS and TS files in src directory |
!**/*.test.js |
Exclude test files |
components/**/index.{jsx,tsx} |
Component index files |
*.config.js |
Config files in root only |
📖 See GLOB_PATTERNS_GUIDE.md for comprehensive pattern documentation.
Example Output
The extension generates a comprehensive text file containing:
# Code2Summarize Report
## Configuration
- Mode: Glob Patterns
- Include Patterns: **/*.{js,ts}, src/**/*
- Exclude Patterns: **/*.test.js
- Generated: 2025-09-17T13:30:00.000Z
## Project Structure
MyProject ├── src/ │ ├── index.js │ ├── components/ │ │ └── Button.jsx │ └── utils/ │ └── helper.js └── package.json
## File Contents
### File: index.js
**Path**: `src/index.js`
**Lines**: 42
**Size**: 1.2 KB
```javascript
// File contents here...
Summary Statistics
- Total Files Processed: 15
- Total Lines: 1,234
- Total Size: 45.6 KB
## Use Cases
- 📝 **Documentation**: Generate comprehensive project documentation
- 🤖 **AI Analysis**: Prepare code for AI model analysis
- 👥 **Code Reviews**: Share project structure with team members
- 📦 **Archiving**: Create snapshots of your codebase
- 🔍 **Auditing**: Review project organization and structure
## Requirements
- VS Code version 1.60.0 or higher
- Node.js (for extension development)
## Contributing
Contributions are welcome! Please check our [GitHub repository](https://github.com/karthyick/Code2Summarize).
### Development Setup
1. Clone the repository
2. Run `npm install`
3. Open in VS Code
4. Press F5 to run the extension in debug mode
## License
MIT License - see LICENSE file for details
## Author
Karthick Raja M - [@karthyick](https://github.com/karthyick)
## Acknowledgments
- VS Code Extension API
- minimatch library for glob pattern support
- Community contributors and feedback
## Changelog
See [CHANGELOG.md](https://github.com/karthyick/Code2Summarize/blob/HEAD/CHANGELOG.md) for version history.
---
**Enjoy summarizing your code!** 🎆