有时突然发现全局文本搜索失效了,其实是IEDA等编译器的项目索引文件坏了,只要重新索引项目文件即可。

file -> invalidate Caches ->invalidate and restart 重启之,重新建立好索引即可。