2010年10月18日 星期一

cscope & ctags

find . -name '*.h' -o -name '*.c' | cscope -i - -b &

-----------------------------------------------------
@@cscope setting on ubuntu
1./usr/share/vim/vim72/plugin/cscope_map.vim

@@Step 1 : Create cscope.out file on project.
#find . -name '*.h' -o -name '*.c' | cscope -i - -b &
or
#find . -name '*.[hc]' | cscope -i - -b -R &

Step 2 : At cscope.out directory and trace code by cscope

Search "Ctrl+[" in my PC.

General using "Ctrl+\" in general PC.

Step 3 :


@@ctags: "ctags -R ."

Start trace code "Ctrl+]"


----------------------------------------------------
ctaglist:
vi /etc/vim/vimrc


"Taglist edit"
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
nnoremap :TlistToggle


----------------------------------------------------
reference:
http://www.cmlab.csie.ntu.edu.tw/~daniel/linux/vim_source_navigation.html

沒有留言:

張貼留言