Tuesday 27 November 2012

How To Tag Source

The following are the steps which will be useful to tag the source,

1. Go to your root directory of source bed
  Ex: cd /app/src/main_src/

 2. execute ctags -R
  if it is not working
 do which ctags , get the path of it and then execute by following ,
ex:
/usr/bin/ctags -R

3. now you could see  file "tags" created in your root src dir
4. now set tags for your vim

 open your vimrc file

vi ~/.vimrc
set tags=/app/src/main_src/tags

:wq

5. from now where ever your are in your src, you can get the func definition by "ctrl + ]" to get back "ctrl + t"

Enjoy the tagging ..!!

Let me know in case of  help required ..