1.下载并解压ctags包中的ctags.exe到系统环境路径(默认压缩在c:windowssystem32就好了)
2.若没安装package control在这个插件的话,先安装它。这个在我的blog里有说明
3.现在安装开始ctags的插件了,在package control中选择install package,搜索ctags就能找到ctags的插件,安装之。
到这里ctags就安装好
安装了,肯定无法使用,必须系统中有ctags才能用
官方说明如下安装ctags
OS X
If anyone is having trouble getting the CTags -R flag to work on OSX, you are probably using the stock CTags installation.
To get a proper copy of ctags, use one of the following options:
Using Homebrew: brew install ctags
Using MacPorts: port install ctags
Make sure that Sublime Text is using the right version of CTags:*
If 'which ctags' doesn't point at ctags in '/usr/local/bin', make sure you add '/usr/local/bin' to your PATH ahead of the folder that 'which ctags' reported.
Add or modify the 'export PATH=...' (e.g. in /.profile) to make the change permanent
Linux
To get a proper copy of ctags, use one of the following options:
In a terminal session: sudo apt-get install ctags
Windows
Download the binary ctags.exe from Exuberant Ctags site.
Extract ctags.exe from the download zip to "C:Program FilesSublime Text 2" or any folder that within your PATH so CTags support for Sublime Text 2 can run it.
接着说一下使用
要想ctags可以使用,先要在相应的项目目录生成.tags文件,比如我要在G:AppDatawebsevenCola下生成。
首先cmd进入对应的目录
然后使用ctags -R -f .tags命令
接着你就可以发现目录下多了个文件
生成.tags文件后,在sublime text2中用ctrl+r+t (re)build ctags
使用操作点这里https://github.com/SublimeText/CTags
常用的就是ctrl+alt+]跳转定义处,ctrl+alt+[返回