This Sublime Text 2/3 package provides support for working with tags generated by Exuberant CTags
The ctags command is searched for on the system PATH. It works by doing a binary search of a memory-mapped tags file, so it will work efficiently with very large (50MB+) tags files if needed.
See this forum thread for a bit of historical background on the Sublime Text plugin.
The easiest way to install this plugin, is to use the Package Control plugin, by Will Bond
Alternatively, the plugin can be installed manually using one of the following methods.
Go to your Sublime Text Packages directory and clone the repository using the command below:
$ git clone https://github.com/SublimeText/CTags
- Download the files using the .zip download option
- Unzip the files (and rename the folder to CTags if needed)
- Copy the folder to your Sublime Text Packages directory
The default ctags
executable in OSX does not support recursive directory
search (i.e. ctags -R
). To get a proper copy of ctags, use one of the
following options:
Ensure that the PATH
is updated so the correct version is run:
- If
which ctags
doesn't point at ctags in/usr/local/bin
, make sure you add/usr/local/bin
to yourPATH
ahead of the folderwhich ctags
reported. - Alternatively, add the path to the new
ctags
executable to the settings, undercommand
. If you have Xcode / Apple Developer Tools installed this path will likely be/usr/local/bin/ctags
.
To install ctags use your package manager.
For Debian-based systems (Ubuntu, Mint, etc.):
sudo apt-get install exuberant-ctags
For Red Hat-based systems (Red Hat, Fedora, CentOS):
sudo yum install ctags
And so forth
- Download the CTags binary from the Exuberant CTags site.
- Extract
ctags.exe
from the downloaded zip toC:\Program Files\Sublime Text 2
or any folder within your PATH so that