月蚀:如何添加包含路径被自动完成使用 [英] Eclipse: How to add include path to be used by autocompletion

查看:110
本文介绍了月蚀:如何添加包含路径被自动完成使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我玩弄的Linux设备驱动程序。而且我注意到,日食不会做任何自动完成。即使包含路径时,Eclipse没有显示任何自动完成。

I am playing around with Linux device drivers. And I've noticed that eclipse doesn't do any auto-completion. Even though the include paths, Eclipse fails to show any autocompletion.

有没有办法来指向Eclipse的一个目录,并告诉它来建立它的指数?

Is there a way to point Eclipse to a directory and tell it to build index of it?

推荐答案

您必须明确告诉它在哪里可以找到头:

You have to explicitly tell it where to find the header:

⇒鼠标右键点击你的项目结果
⇒去'的 C / C ++包含路径和符号的'结果
⇒选择的添加外部包含路径......的结果
⇒浏览你的头文件搜索的位置
⇒刷新

⇒ Right click on your project
⇒ go to 'C/C++ Include Paths and Symbols'
⇒ select 'Add External Include Path...'
⇒ browse to the location of your header files
⇒ refresh

这篇关于月蚀:如何添加包含路径被自动完成使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆