codetag 是一个为 VS Code 提供代码标签索引与跳转的插件。它会自动扫描工作区所有代码文件注释中的 #标签,并在侧边栏以树形结构展示,支持一键跳转到对应代码。
codetag is a VS Code extension for code tag indexing and navigation. It automatically scans all code comments in your workspace for #tags and displays them in a sidebar tree, allowing you to jump to the corresponding code with one click.
主要功能 | Features
自动扫描注释中的 #标签(支持中英文标签)
侧边栏树形展示所有标签及其出现位置
显示每个标签的数量和标签总数
点击可跳转到对应代码行
支持一键刷新标签树
Auto-scan #tags in code comments (supports Chinese & English tags)
Sidebar tree view of all tags and their locations
Show count for each tag and total tags
Click to jump to the code line
One-click refresh for tag tree
使用说明 | Usage
在左侧边栏点击 "Code Tags" 图标,浏览所有标签。
顶部显示标签总数,标签下显示所有出现位置(相对路径+行号)。
点击位置可跳转到对应代码。
右键或命令面板执行 Refresh Code Tags 可手动刷新。
Click the "Code Tags" icon in the sidebar to browse all tags.
The top node shows the total tag count; each tag node shows all locations (relative path + line number).
Click a location to jump to the code.
Right-click or use the command palette to run Refresh Code Tags for manual refresh.
常见问题 | FAQ
为什么有些标签没被识别?
只会识别注释行中的 #标签,代码行里的不会被识别。
支持多行注释吗?
当前仅支持常见单行注释(如 //、#、--、;),如需多行注释支持请反馈。
Can I use Chinese tags?
Yes, both Chinese and English tags are supported.
更新日志 | Changelog
v0.0.4: 增加实时保存文件、文件删除监听
v0.0.4: Added real-time file save and file deletion monitoring
v0.0.3: 增加产品 icon
v0.0.3: Added product icon
v0.0.2: 降低支持 vscode 版本,用以支持 cursor
v0.0.2: Lowered supported VS Code version to support Cursor
v0.0.1: 首个版本,支持注释标签扫描、侧边栏展示与跳转。
v0.0.1: Initial release, supports comment tag scan, sidebar view, and navigation.