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