这几天配置Visual Studio Code未完成的时候,尝试为Sublime Text 配置 ctags和Cscope,从homebrew安装ctags和Cscope
命令如下:
brew install ctags
brew install Cscope
安装之后的路径默认如下:
/usr/local/Cellar/ctags/5.8_1/bin/ctags
/usr/local/Cellar/cscope/15.8b/cscope
但是如果直接运行
ctags -R -f .tags
可能会和xcode的ctags冲突,会提示-R参数非法。所以需要指定其路径。
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
但是第二天运行又没冲突了,很奇怪。在此记录一下。目前还是用Visual Studio Code。