linux - 使用 cscope 搜索字符串集

标签 linux string search cscope

我的 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/

相关文章:

linux - 无法加载 JNA native 支持库 Elasticsearch 6.x

c++ - 构建 GLUI2 库 (Ubuntu)

python - 适用于 Ubuntu 和 Windows 的相同 python 库列表

javascript - 我如何在 JavaScript 中根据单词对字符串进行分块?

MYsql FULLTEXT 查询产生意想不到的排名;为什么?

php - 适用于 Linux 的轻量级 IDE

java - 如何将字符串与字符串数组的特定部分进行比较?

c# - 用于在表中存储日期的字符串由于未知原因正在转换为 int

R - 在数据框中查找字符串的每个位置

php - Mysql、PHP、多词搜索