Windows下使用emacs+cscope

1. 首先进入msys-shell,设置系统变量HOME

2. 运行生成cscope.files,有两个方法:

a)find -iname '*.[ch]' -o -iname '*.[ch]pp' > cscope.files

b)下载 cscope-indexer脚本
http://code.google.com/p/elisp/source/browse/trunk/emacs/cscope/cscope-15.7-win/cscope-indexer?r=68

运行cscope-indexer -r -v -i cscope.files -f cscope.out .

3. 使用快捷键

  • Index files: C-c s I (这个在windows下不能用)
  • Find global definition: C-c s d
  • Find symbol definition: C-c s s
  • Find this file: C-c s f
  • Find functions calling this function: C-c s c
  • Find functions called by this function: C-c s C
  • Find this pattern: C-c s e
  • Find this text string: C-c s t
  • Find files including this file: C-c s i

转载于:https://www.cnblogs.com/fanzi2009/archive/2012/06/15/2550899.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值