Does cscope has search history or search query stack feature?

ぃ、小莉子 提交于 2019-12-05 17:30:58

Yes it does. The help explains this. [ Press ? in the main window.]

Ctrl+b - Step back in search history.

Ctrl+f - Step forward in search history.

I primarily use the cbrowser GUI frontend http://sourceforge.net/projects/cbrowser/ to cscope and it has a drop-down box where it remembers the last 15 queries.

Alternatively, if you use the Vim or Emacs/XEmacs editors they have cscope support built-in. I'm not familiar with how the Emacs integration works but in Vim it works pretty much like a regular tag-stack in that you can jump to symbol and then pop back to a previous symbol. Here's some information on the Vim integration http://cscope.sourceforge.net/cscope_vim_tutorial.html. There is some information on the emacs integration on the main cscope page http://cscope.sourceforge.net/.

At the cscope prompt you can type Ctrl-b to go back to your previous searches. If you move to another field say "symbol search" from "definition search", you can repeat the query for the same symbol by pressing Ctrl-y. HTH.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!