create TAGS for emacs -- etags
时间:2006-08-15 来源:rwen2012
1.
find | egrep '(\.h|\.cpp|\.c)$' | xargs etags -a --declarations --members
2.
#!/bin/sh
trap "rm -f /tmp/$$" 0 1 2 3 15
rm -f ./TAGS
find `pwd`/ -type f -name "*.[chSs]" -print | \
xargs etags --append -o TAGS
find . -type d -print | \
while read DIR; do
[ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
done
创建 TAGS 文件后,
通过 M-. 可以查找声明
C-u M-. 可以查找下一个.
find | egrep '(\.h|\.cpp|\.c)$' | xargs etags -a --declarations --members
2.
#!/bin/sh
trap "rm -f /tmp/$$" 0 1 2 3 15
rm -f ./TAGS
find `pwd`/ -type f -name "*.[chSs]" -print | \
xargs etags --append -o TAGS
find . -type d -print | \
while read DIR; do
[ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
done
创建 TAGS 文件后,
通过 M-. 可以查找声明
C-u M-. 可以查找下一个.
相关阅读 更多 +