ctags install

Download Ctags Install

If you can't read please download the document

Upload: nonopbmo

Post on 21-Nov-2015

6 views

Category:

Documents


0 download

DESCRIPTION

Ctags Install

TRANSCRIPT

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 Sublime Text can run it. Alternatively, extract to any folder and add the path to this folder to the command setting.Usage-----This uses tag files created by the ctags -R -f .tags command by default (although this can be overriden in settings).The plugin will try to find a .tags file in the same directory as the current view, walking up directories until it finds one. If it can't find one it will offer to build one (in the directory of the current view)If a symbol can't be found in a tags file, it will search in additional locations that are specified in the CTags.sublime-settings file (see below).If you are a Rubyist, you can build a Ruby Gem's tags with the following script:require 'bundler'paths = Bundler.load.specs.map(&:full_gem_path)system("ctags -R -f .gemtags #{paths.join(' ')}")Settings--------By default, Sublime will include ctags files in your project, which causes them to show up in the file tree and search results. To disable this behaviour you should add a file_exclude_patterns entry to your Preferences.sublime-settings or your project file. For example:"file_exclude_patterns": [".tags", ".tags_sorted_by_file", ".gemtags"]In addition to this setting, there's a CTags.sublime-settings file, which can be edited like any other .sublime-settings file filters will allow you to set scope specific filters against a field of the tag. In the excerpt above, imports tags like from a import b are filtered: '(?P[^\t]+)\t' '(?P[^\t]+)\t' '(?P.*?);"\t' '(?P[^\t\r\n]+)' '(?:\t(?P.*))?' extra_tag_paths is a list of extra places to look for keyed by (selector, platform). Note the platform is tested against sublime.platform() so any values that function returns are valid. extra_tag_files is a list of extra files relative to the original file command is the path to the version of ctags to use, for example: "command" : "/usr/local/bin/ctags" or: "command" : "C:\Users\\Downloads\CTags\ctag.exe"The rest of the options are fairly self explanatory.