Fedora19 and SublimeText2 use ctags to redirect function files. The younger brother thinks sublime has this, and no longer needs to use zendstudio's bloated IDE! Applaud! The text below is reprinted and too lazy to test. The main content is quick operation ctrl + tctrl + t to jump to the file. Another one is configured in: settings-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:
Linuxidc @ ubuntu :~ /Workplace/rhino $ ctags-R-f. tags
Linuxidc @ 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 |
|
Reading:
Ubuntu 12.10 install and crack Sublime Text 2Http://www.linuxidc.com/Linux/2013-07/86898.htm
Ubuntu 13.04 install Sublime Text 2 http://www.linuxidc.com/Linux/2013-05/84228.htm
Code artifact-Sublime Text package management tools and extensions Daquan http://www.linuxidc.com/Linux/2013-10/91701.htm
How to Develop Sublime Text 2 plug-in http://www.linuxidc.com/Linux/2013-09/90046.htm
Install and crack Sublime Text 2 editor http://www.linuxidc.com/Linux/2013-08/89452.htm in Windows Mac Linux
Text Editor Sublime Text experience http://www.linuxidc.com/Linux/2013-08/89326.htm
For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5