Skip to content

naoyukik/CTags

 
 

Repository files navigation

CTags

https://travis-ci.org/SublimeText/CTags.svg?branch=development

About

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.

Installation

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.

Using Git

Go to your Sublime Text Packages directory and clone the repository using the command below:

$ git clone https://github.com/SublimeText/CTags

Manual Download

  • 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

Additional Setup Steps

OS X

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 your PATH ahead of the folder which ctags reported.
  • Alternatively, add the path to the new ctags executable to the settings, under command. If you have Xcode / Apple Developer Tools installed this path will likely be /usr/local/bin/ctags.

Linux

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

Windows

  • Download the CTags binary from the Exuberant CTags site.
  • Extract ctags.exe from the downloaded zip to C:\Program Files\Sublime Text 2 or any folder within your PATH so that