1)新立得cscope
2)更新.emacs 如下:
(setq cscope-do-not-update-database t)
(load-file "/usr/share/emacs/site-lisp/xcscope.el")
(require 'xcscope)
3)进入工作目录
myusernam@mycomputer:~/mycode$ cscope-indexer -r
4)用global definition
本文介绍如何在Emacs中配置cscope以提高代码导航效率。具体步骤包括禁用cscope数据库更新、加载xcscope.el文件并启用xcscope,最后通过cscope-indexer命令建立索引。
1)新立得cscope
2)更新.emacs 如下:
(setq cscope-do-not-update-database t)
(load-file "/usr/share/emacs/site-lisp/xcscope.el")
(require 'xcscope)
3)进入工作目录
myusernam@mycomputer:~/mycode$ cscope-indexer -r
4)用global definition

被折叠的 条评论
为什么被折叠?