Wednesday, July 11, 2012

Install CTags plug for sublime text 2

0. Install ctags on your machine.
    sudo apt-get install ctags
   
1. cd ~/.config/sublime-text-2/Packages

2. $ git clone https://github.com/SublimeText/CTags CTags

3. restart sublime, ctrl+shift+p, type "CTags", select "rebuild tags"

4. now you can select a variable and navigate to the definition.

5. you can also jump back from the definition.

6. a more elegant way, select a folder, right click "rebuild tags", you can build tags for all files in this directory.

No comments:

Post a Comment