VS Code File Explorer Note Count

在 VS Code 文件资源管理器中显示文件和文件夹计数,提供项目统计仪表板。
Display file and folder counts in VS Code File Explorer with a project statistics dashboard.
thx 'File counter' and 'obsidian-file-explorer-note-count' for the inspiration.
特性 Features
- 文件资源管理器中显示文件夹文件数和目录数
- 功能丰富的项目统计仪表板
- 支持颜色编码(根据数量显示不同颜色)
- 多语言支持(英语、中文)
- 高度可定制的配置选项
- 智能缓存和性能优化




安装 Installation
从 VS Code Marketplace 搜索 "File Explorer Note Count" 安装,或使用:
code --install-extension vscode-file-counter-5.9.0.vsix
使用方法 Usage
基本功能。
安装后自动在文件资源管理器显示文件夹计数:
src/ 12
components/ 8
快捷键
Ctrl+Shift+D - 打开仪表板 (Open Dashboard)
Ctrl+Shift+R - 刷新计数 (Refresh Counts) will auto refresh
打开仪表板
命令面板(Ctrl+Shift+P)→ "Show Dashboard"
配置选项 Configuration
基本设置 Basic Settings
| 设置 Setting |
默认值 Default |
描述 Description |
fileCounter.enabled |
true |
启用/禁用文件计数 |
fileCounter.includeFiles |
true |
包含文件数 |
fileCounter.includeDirectories |
true |
包含目录数 |
fileCounter.compactMode |
false |
紧凑模式(仅显示总数) |
fileCounter.useColorCoding |
true |
使用颜色编码 |
fileCounter.color |
"#888888" |
自定义颜色 |
过滤设置 Filter Settings
| 设置 Setting |
默认值 Default |
描述 Description |
fileCounter.excludedPatterns |
["node_modules", ".git", "out", "dist"] |
排除的 glob 模式 |
fileCounter.includePatterns |
[] |
包含的 glob 模式 |
fileCounter.excludeHidden |
true |
排除隐藏文件 |
fileCounter.maxDepth |
-1 |
最大扫描深度 (-1 = 无限制) |
仪表板设置 Dashboard Settings
| 设置 Setting |
默认值 Default |
描述 Description |
fileCounter.dashboard.showFileTypeChart |
true |
显示文件类型图表 |
fileCounter.dashboard.chartType |
"pie" |
图表类型 |
fileCounter.dashboard.colorTheme |
"default" |
颜色主题 |
fileCounter.dashboard.locale |
"en" |
语言 (en/zh-cn) |
fileCounter.dashboard.autoRefreshEnabled |
false |
启用自动刷新 |
fileCounter.dashboard.autoRefreshInterval |
30 |
自动刷新间隔(秒) |
颜色编码 Color Coding
根据文件数量自动应用不同颜色(文件名不同筛选):
- 🔴 红色:≥ 1,000 个文件
- 🟠 橙色:100-999 个文件
- 🔵 蓝色:10-99 个文件
- ⚪ 灰色:< 10 个文件
许可证 License
MIT License
Made with by NameZH131
| |