☰ 菜单
命令行 开源 133 次安装/月

ctags for Mac 版

ctags 是什么

ctags 是一款面向程序员的命令行工具,用来为源代码建立索引,帮助你在编辑器或 IDE 中快速跳转到函数、变量、类等符号的定义位置。它重新实现了经典的 ctags(1),在保持命令行使用方式的同时,对解析器和语言支持做了现代化改进。日常读代码、改项目时,面对成百上千个文件,靠手动搜索找定义既慢又容易漏,ctags 生成的标签文件正好解决这个问题。它适合习惯用 Vim、Emacs 等编辑器写代码的开发者,也适合需要把符号索引接入构建流程或脚本的团队。工具本身不依赖图形界面,配置灵活,可以按项目需要生成对应的标签索引。

如何安装 ctags

  1. 打开 终端(按 ⌘ + 空格,输入“终端”)。
  2. 如果还没安装 Homebrew,先运行下面这条安装命令。
  3. 运行下面这条命令:

二进制包支持平台

Homebrew 官方提供的预编译包(bottle)覆盖:

  • Apple 芯片 · 最新 macOS
  • Apple 芯片 · macOS 26 Tahoe
  • Apple 芯片 · macOS 15 Sequoia
  • Apple 芯片 · macOS 14 Sonoma
  • Apple 芯片 · macOS 13 Ventura
  • arm64_monterey
  • arm64_big_sur
  • Intel · macOS 14 Sonoma
  • Intel · macOS 13 Ventura
  • Intel · macOS 12 Monterey
  • big_sur
  • Linux · ARM64
  • Linux · x86_64

安装注意事项

Under some circumstances, emacs and ctags can conflict. By default,nemacs provides an executable `ctags` that would conflict with thenexecutable of the same name that ctags provides. To prevent this,nHomebrew removes the emacs `ctags` and its manpage before linking.n

不能与以下软件包同时安装: universal-ctags。

如需同时使用,请先 brew uninstall 冲突的包,或改用独立的环境安装。

与同类应用对比

只对比公开元数据,不做主观推荐;需要逐项对比时见对比页。

与同类应用对比
应用版本许可证架构近 30 天安装
ctags5.8GPL-2.0-or-later AND LGPL-2.1-or-later命令行133
universal-ctagsv6.2.1GPL-2.0-or-later命令行1,037
yasm1.3.0BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Homebrew-public-domain AND (Artistic-1.0-Perl OR GPL-2.0-or-later OR LGPL-2.0-or-later)命令行613
lief-patchelf1.0.0Apache-2.0命令行14

命令行工具中的类似应用

评论加载中…

评论表单加载中…