- mac 安装 ctags
brew install ctags
- 安装 vscode 插件 CTags Support

- 构建索引(包含 gem path)
$ cd /my_project
$ ctags -R -f .tags --exclude=.git --exclude=tmp --exclude=public --exclude=node_modules --exclude=app/assets --languages=ruby --recurse . `bundle show --paths`
- command + T 或者 command + 点击 跳转成功

本文指导如何在Mac上使用Homebrew安装ctags,并演示如何为VSCode配置CTagsSupport,创建项目文件的索引,包括排除特定目录。通过`command+T`快捷键实现代码跳转。
1222





