Character Monitor
一个用于监控 Markdown 文件段落字符数的 VS Code 扩展。
功能特性
- 实时字符计数: 在状态栏显示当前段落的字符数
- 智能段落识别: 自动识别光标所在段落(以空行分隔)
- 智能过滤: 字符统计时排除 URL、邮箱地址,移除标题 # 符号
- 超限警告: 段落超过 512 字符时状态栏变红并显示警告
- 仅支持 Markdown: 只在 Markdown 文件中激活
使用方法
- 打开任意 Markdown 文件
- 将光标移动到任意段落中
- 状态栏右侧会显示当前段落的字符数
- 当字符数超过 512 时,状态栏会变红并显示警告图标
字符计数规则
- 统计当前段落(由空行分隔)的所有字符
- 自动排除 URL 链接和邮箱地址
- 保留 Markdown 图片链接的
![alt]() 结构,但移除其中的 URL
- 清理多余的空格、换行符和制表符
- 移除 Markdown 标题前的
# 符号
系统要求
发布日志
0.0.1
- 初始版本发布
- 实现段落字符数统计功能
- 添加超限警告功能
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
- Toggle preview (
Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
- Press
Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!
| |