gpt4 book ai didi

linux - 使用 cscope 搜索字符串集

转载 作者:太空宇宙 更新时间:2023-11-04 04:14:11 24 4
gpt4 key购买 nike

我的 cscope 在包含多个文件的项目上运行良好。在 Eclipse 和其他 IDE 中,可以在整个项目中搜索字符串,例如“how are you”。 cscope 支持这个功能吗?如果可以,该怎么做?

最佳答案

打开 cscope 浏览器后,输入 '?' 查看帮助页面。它显示您可以执行的操作列表:

Find this C symbol:
Find this global definition:
Find functions called by this function:
Find functions calling this function:
Find this text string:
Change this text string:
Find this egrep pattern:
Find this file:
Find files #including this file:

选择您要执行的搜索类型,输入搜索词并按 Enter 键。

在屏幕顶部,Cscope 将显示结果列表,其中包含找到搜索词的文件、函数和行。

关于linux - 使用 cscope 搜索字符串集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17564721/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com