sublime3 ctags 支持golang windows

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

参考:

https://segmentfault.com/a/1190000009037471

https://blog.csdn.net/chenbaoke/article/details/50848283

这里所说的“Windows的Home”实际指的是C:\Users\wangsan这样的路径

但是这个路径下如果建立.ctags这样的文件是不被允许的(windows),

因此需要你借助git bash  或者Linux系统通过vim的方式生成一个.ctags文件,

配置完后,查看系统是否支持了go语言,在cmd中输入

ctags --list-languages  
ctags --list-kinds  
ctags --list-maps  

并将这段代码写入,也可以参考http://ctags.sourceforge.net/EXTENDING.html官网

--langdef=Go
--langmap=Go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0->9_]+)/\2/f,func/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/

 

 

转载于:https://my.oschina.net/u/1462678/blog/1817930

你可能感兴趣的:(sublime3 ctags 支持golang windows)