Use Sublime Text 2 CTags under Fedora 19

Source: Internet
Author: User

Fedora 19 and Sublime Text 2 Use ctags to redirect function files.

The younger brother thinks that sublime has this, and no longer needs to use zend studio's bloated IDE! Applaud!

The text below is reprinted and too lazy to test. The main content is quick operation ctrl + t jump to the file.

Another one is configured in:

Settings-User:

"File_exclude_patterns": [". tags", ". tags_sorted_by_file", ". gemtags"] I don't know how to append this object. It seems that it must be added.


The introduction of ctags will not be introduced here. You can search for it. (The test passed in Ubuntu, but not in other environments)
1. Install ctags as follows:

Curl-O http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz
Tar xzvf ctags-5.8.tar.gz
Cd ctags-5.8
./Configure
Make
Sudo make install2. add ~ /. Ctags file, the content is as follows:

-- Langdef = Go
-- Langmap = Go:. go
-- Regex-Go =/func ([\ t] + \ ([^)] + \))? [\ T] + ([a-zA-Z0-9 _] +)/\ 2/d, func/
-- Regex-Go =/var [\ t] + ([a-zA-Z _] [a-zA-Z0-9 _] +)/\ 1/d, var/
-- Regex-Go =/type [\ t] + ([a-zA-Z _] [a-zA-Z0-9 _] +)/\ 1/d, type/3. install the Sublime Text 2 CTags Plugin:
Address: https://github.com/SublimeText/CTags

4. Generate the. tags file in your project directory:

Bkjia @ ubuntu :~ /Workplace/rhino $ ctags-R-f. tags
Bkjia @ ubuntu :~ /Workplace/rhino $ can also use ctrl + shift + p rebuild tags.

Now you can try the following common commands:

Commands Listing
Command Key Binding Alt Binding Mouse Binding
Rebuild_ctags Ctrl + t ctrl + r    
Navigate_to_definition Ctrl + t Ctrl +> Ctrl + shift + left_click
Jump_back Ctrl + t ctrl + B Ctrl + < Ctrl + shift + right_click
Jump_back to_last_modification Ctrl + t ctrl + m    
Show_symbols Alt + s    
Show_symbols multi Alt + shift + s    
Show_symbols suffix Ctrl + alt + shift + s  

Ubuntu 12.10 install and crack Sublime Text 2

Install Sublime Text 2 on Ubuntu 13.04

Code artifact-Sublime Text package management tools and extensions

How to Develop the Sublime Text 2 plug-in

Install and crack the Sublime Text 2 editor in Windows Mac Linux

Text Editor Sublime Text User Experience

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.