有没有一个简单的方法来附加源在Eclipse? [英] Is there an easy way to attach source in Eclipse?

查看:239
本文介绍了有没有一个简单的方法来附加源在Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了Visual Studio在完成您编写的代码以及您所引用的ALSO代码(各种库/程序集)时给予注释文档/参数名称的一大好处。



在执行代码完成或悬停在方法上时,是否有一种简单的方法来获取Eclipse中的内联javadoc / parameter名称?通过插件?通过一些设置?使用很多库(非常常见于Java)非常烦人,然后必须到网站或本地的javadoc位置才能在源代码库中查找信息!

解决方案

简短答案将是肯定的。



您可以使用项目的属性来附加源。 / p>

转到属性(对于项目) - > Java构建路径 - >库



选择所需的库要附加源/ javadoc,然后将其扩展,您将看到如下所示的列表:

 源附件:(无) 
Javadoc位置:(无)
本地库位置:(无)
访问规则:(无限制)

选择Javadoc位置,然后单击右侧的编辑。这应该是很直接的。



祝你好运))


I'm a big fan of the way Visual Studio will give you the comment documentation / parameter names when completing code that you have written and ALSO code that you are referencing (various libraries/assemblies).

Is there an easy way to get inline javadoc/parameter names in Eclipse when doing code complete or hovering over methods? Via plugin? Via some setting? It's extremely annoying to use a lot of libraries (as happens often in Java) and then have to go to the website or local javadoc location to lookup information when you have it in the source jars right there!

解决方案

Short answer would be yes.

You can attach source using the properties for a project.

Go to Properties (for the Project) -> Java Build Path -> Libraries

Select the Library you want to attach source/javadoc for and then expand it, you'll see a list like so:

Source Attachment: (none)
Javadoc location: (none)
Native library location: (none)
Access rules: (No restrictions)

Select Javadoc location and then click Edit on the right hahnd side. It should be quite straight forward from there.

Good luck :)

这篇关于有没有一个简单的方法来附加源在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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