How to set up Ctags for Sublime Text Editor 2
"Use the Source, Luke"
— Obi-Wan Kenobi
Ctags is an excellent plugin for Sublime Text Editor 2 for giving you Jedi like powers. It enables you to jump through function calls to their definitions in the source code saving you a whole load of parsecs in file navigation.
Install the latest version of ctags by typing the following in a terminal session:
sudo apt-get install ctags
Open the global search In Sublime by pressing SHIFT + CTRL + P. Search for ‘Install Package’ and hit enter to open the package manager (or install it if you haven't already). You can now search the available plugins for Ctags and click to install.
Index your project code by changing to it's directory in a terminal window and type the following command:
ctags -R -f .tags
You can now use the following commands to jump through your files:
rebuild_ctags ctrl+t ctrl+r
navigate_to_definition ctrl+t ctrl+t or ctrl+alt+]
jump_back ctrl+t ctrl+b or ctrl+alt+[
jump_back to_last_modification ctrl+t ctrl+m
May the fourth be with you...