"组织进口"在MonoDevelop中 [英] "Organize imports" in MonoDevelop

查看:168
本文介绍了"组织进口"在MonoDevelop中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在Eclipse的Java开发,我可以按Ctrl + Shift键+ O组织进口,有IDE弄清楚哪些库,我可能会尝试使用,并自动导入。

When developing for Java in Eclipse, I can hit Ctrl+Shift+O to "Organize Imports", to have the IDE figure out which libraries I'm likely trying to use, and import them automatically.

有没有MonoDevelop中类似的功能进行编程C#

Is there a similar feature in MonoDevelop for programming C#?

修改

我是新的C#和整个微软的空间。如果没有办法做到这一点,怎么会正常确定哪些库包含他们试图使用类?

I'm new to C# and the whole Microsoft space. If there is no way to do this, how would one normally determine which library contained the class they were trying to use?

推荐答案

类似的功能在加入的MonoDevelop 2.2 (最新版本)。

A similar feature was added in MonoDevelop 2.2 (the latest version).

您可以通过右键点击一个无法识别使用类型,将鼠标悬停在解决:

You can use it by right-clicking on an unrecognized type, and hovering over "Resolve":

如果类型是公认的(也就是说,如果你已经;在上述例子),你不会看到这个菜单。

If the type is recognized (i.e., if you were already using Gdk; in the above example), you will not see this menu.

如果你使用的 Ubuntu的业报,MonoDevelop中的存储库中的版本是<强> 2.0 。你需要添加这个PPA 升级。如果您使用的窗口 OS X 上,您可以下载MonoDevelop的 2.2 从的 MonoDevelop的网站

If you're using Ubuntu Karmic, the version of MonoDevelop in the repositories is 2.0. You'll need to add this PPA to upgrade. If you're using Windows or OS X, you can download MonoDevelop 2.2 from the MonoDevelop website.

这篇关于&QUOT;组织进口&QUOT;在MonoDevelop中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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