从homebrew 安装 ctags 和 Cscope

版权声明:本文为博主(SimonLiu)原创文章,未经博主允许不得转载。 https://blog.csdn.net/toopoo/article/details/85285877

这几天配置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。

猜你喜欢

转载自blog.csdn.net/toopoo/article/details/85285877