使用Arch和我安装了CTAG5.8。
我的Go项目有以下结构:
.
├── apply
│ └── apply.go
├── calculate
│ └── calculate.go
├── coupon.sqlite3
├── Godeps
│ ├── Godeps.json
│ └── Readme
├── main.go
├── Makefile
├── models
│ ├── cupom.go
│ ├── errorMessage.go
│ └── product.go
├── ping
│ └── ping.go
├── README.md
├── routes
│ └── routes.go
├── tags
├── tests
│ ├── apply_test.go
│ ├── calculate_test.go
│ ├── config.go
│ ├── coupon.sqlite3
│ └── fixtures
│ └── calculate.go运行命令ctags -R或ctags -R .,我生成了一个tags文件,但只使用该内容。
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.8 //在其他项目上运行相同的命令将正确生成tags文件。
发布于 2017-07-31 13:41:56
您已经安装了Exuberant Ctag,它不支持开箱即用(http://ctags.sourceforge.net/languages.html)。
有许多不同的替代程序或方法可以将其添加到现有的ctag中:
https://stackoverflow.com/questions/45270979
复制相似问题