Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>字符监视器New to Visual Studio Code? Get it now.
字符监视器

字符监视器

msgk

|
2 installs
| (0) | Free
实时监控 Markdown 文件段落字符数,超过512字符时显示警告
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Character Monitor

一个用于监控 Markdown 文件段落字符数的 VS Code 扩展。

功能特性

  • 实时字符计数: 在状态栏显示当前段落的字符数
  • 智能段落识别: 自动识别光标所在段落(以空行分隔)
  • 智能过滤: 字符统计时排除 URL、邮箱地址,移除标题 # 符号
  • 超限警告: 段落超过 512 字符时状态栏变红并显示警告
  • 仅支持 Markdown: 只在 Markdown 文件中激活

使用方法

  1. 打开任意 Markdown 文件
  2. 将光标移动到任意段落中
  3. 状态栏右侧会显示当前段落的字符数
  4. 当字符数超过 512 时,状态栏会变红并显示警告图标

字符计数规则

  • 统计当前段落(由空行分隔)的所有字符
  • 自动排除 URL 链接和邮箱地址
  • 保留 Markdown 图片链接的 ![alt]() 结构,但移除其中的 URL
  • 清理多余的空格、换行符和制表符
  • 移除 Markdown 标题前的 # 符号

系统要求

  • VS Code 1.74.0 或更高版本

发布日志

0.0.1

  • 初始版本发布
  • 实现段落字符数统计功能
  • 添加超限警告功能

Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

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.

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft