11# CodeCount - VS Code Extension
22
33<!-- Badges -->
4- [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
5- [ ![ VS Code] ( https://img.shields.io/badge/VS%20Code-1.108.2+-blue )] ( https://code.visualstudio.com/ )
64[ ![ VS Marketplace] ( https://img.shields.io/visual-studio-marketplace/v/KebanFiru.CodeLineCounter?label=VS%20Marketplace&color=0078d7 )] ( https://marketplace.visualstudio.com/items?itemName=KebanFiru.CodeLineCounter )
7- [ ![ TypeScript] ( https://img.shields.io/badge/TypeScript-5.9+-blue )] ( https://www.typescriptlang.org/ )
85
96> Quickly analyze your project's codebase with comprehensive metrics, Git analytics, and interactive dashboards.
107
1714### Code Metrics
1815- ** Workspace Analysis** - Total line counts for entire projects
1916- ** File-by-File Breakdown** - Statistics for individual files
20- - ** Language Distribution** - Analyze code across file types with expandable lists
17+ - ** Branch-Aware Language Distribution** - Analyze code by file type with branch-specific stats on feature branches
2118- ** Comment Detection** - Separate counts for comment and blank lines
2219- ** Gitignore Support** - Automatically respects ` .gitignore ` patterns
2320
2421### Git Analytics (Repository View)
25- - ** Contributor Statistics** - Track contributions with added/deleted line counts
22+ - ** Branch-Aware Contributor Statistics** - Track contributions with smart branch detection:
23+ - Feature branches show all branch contributors
24+ - Main branch shows complete repository history
2625- ** Commit Trends** - Visualize commits, additions, and deletions over time
2726- ** Monthly Activity** - Monitor development activity by month
2827- ** Work Patterns** - Understand coding patterns by weekday and hour
2928- ** Repository Metrics** - Total contributors, commits, and lines changed
3029
3130### Interactive Dashboard
32- - ** Real-Time Statistics Panel** - View metrics in VS Code sidebar
33- - ** Expandable Lists** - Top 3 preview with "Show all" toggle for contributors and languages
34- - ** Responsive Charts** - Full-width visualizations using Chart.js v4.4.0
35- - ** Dark Mode Support** - Optimized for VS Code themes with white text on dark backgrounds
31+ - ** Real-Time Statistics Panel** - View metrics in VS Code sidebar with instant updates
32+ - ** Expandable Lists** - Top 3 preview with "Show all/Show less" toggle for:
33+ - Contributors by lines changed
34+ - Languages by line count
35+ - ** Interactive Charts** - Fully responsive visualizations using Chart.js v4.4.0:
36+ - Hover support with cursor feedback
37+ - Tooltips with detailed information
38+ - Horizontal bar charts for better readability
39+ - ** Dark Mode Support** - Optimized for all VS Code themes with white text contrast
3640- ** Performance Optimized** - Instant analysis even for large projects
3741
42+ ## Recent Improvements (v2.0.0)
43+
44+ - ** Branch-aware statistics** - Contributors and languages now adapt to current branch context
45+ - ** Enhanced chart interactivity** - Improved hover states and tooltip visibility
46+ - ** Better data visualization** - Horizontal bar charts for cleaner contributor display
47+ - ** Refined UI/UX** - Simplified panels, better contrast, improved readability
48+ - ** Bug fixes** - Fixed chart rendering, toggle functionality, and text color consistency
49+
3850## Commands
3951
4052Access CodeCount commands via the Command Palette (` Ctrl+Shift+P ` / ` Cmd+Shift+P ` ):
@@ -67,10 +79,13 @@ Access CodeCount commands via the Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P
6779- Select the command you want to run
6880
6981#### Dashboard Features
70- - ** Expandable Lists** - Click "Show all" to expand contributors or languages
71- - ** Interactive Charts** - Hover over visualizations for detailed information
72- - ** Full-Width Analytics** - View commit trends, monthly activity, and work patterns
73- - ** Real-Time Updates** - Click refresh to update statistics
82+ - ** Branch Context Awareness** - Statistics adapt based on your current branch:
83+ - On feature branches: Shows contributors and languages specific to that branch
84+ - On main/master: Displays full repository history
85+ - ** Expandable Lists** - Click "Show all" / "Show less" to toggle between preview and full views
86+ - ** Interactive Charts** - Hover over any visualization for detailed tooltips and data points
87+ - ** Full-Width Analytics** - View commit trends, monthly activity, and work patterns across the repository
88+ - ** Real-Time Updates** - Click refresh button to update statistics when branch or files change
7489
7590## Architecture
7691
@@ -83,12 +98,25 @@ Access CodeCount commands via the Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P
8398
8499## Configuration
85100
101+ ### Git Integration
86102CodeCount respects your project's ` .gitignore ` file, automatically excluding:
87103- ` node_modules/ `
88104- ` dist/ ` and ` build/ `
89105- ` .git/ ` directories
90106- And any patterns defined in ` .gitignore `
91107
108+ ### Branch-Aware Analytics
109+
110+ ** Feature Branches:** When you're on a feature branch (not main/master), CodeCount intelligently shows:
111+ - Contributors who have commits on your branch
112+ - Languages and files modified in your branch
113+ - Branch-specific statistics
114+
115+ ** Main Branch:** When on main or master, you see:
116+ - Complete repository history with all contributors
117+ - Cumulative language distribution across entire project
118+ - Full commit history and analytics
119+
92120## License
93121
94122This project is licensed under the ** MIT License** - see the [ LICENSE] ( LICENSE ) file for details.
0 commit comments