清除Eclipse索引,它与代码不同步

编程入门 行业动态 更新时间:2024-10-24 04:36:25
本文介绍了清除Eclipse索引,它与代码不同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Linux上通过链接资源使用Eclipse和C ++代码。代码分析索引似乎已损坏(Goto定义将光标靠近但不在定义上)刷新资源不能解决它,也不会重新启动Eclipse。

I'm using Eclipse with C++ code via linked resources on Linux. The code analysis index seems to be corrupted (Goto definition lands the cursor close to, but not on, the definition) Refreshing resources doesn't fix it, neither does restarting Eclipse.

有没有办法刷新索引并重建它?

Is there a way to flush the index and rebuild it?

推荐答案

右键单击您的项目,子菜单,选择重建,使用修改的文件更新或清除所有文件。

Right-click on your project, go under the Index submenu, and choose either "Rebuild," "Update with modified files," or "Freshen all files."

我不知道这三个选项之间的区别,但是更新已修改的文件或清除所有文件通常会为我修复它。

I don't know the difference between those three options, but one of "Update with modified files" or "Freshen all files" usually fixes it for me.

此外,我相信你已经做到了,请确保您运行的是最新版本的Eclipse CDT。当前版本似乎比以前的版本有更可靠的索引。

Also, I'm sure you've already done this, but make sure that you're running the latest version of the Eclipse CDT. Current versions seem to have much more reliable indexing than previous versions.

更多推荐

清除Eclipse索引,它与代码不同步

本文发布于:2023-10-26 19:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531076.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:它与   索引   不同步   代码   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!