Eclipse 与 Visual Studio:Eclipse 中哪些功能在 Visual Studio 中不存在,反之亦然?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2977467/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:27:00  来源:igfitidea点击:

Eclipse vs. Visual Studio: What are the features in Eclipse that are not present in Visual Studio and vice versa?

visual-studioeclipse

提问by Srikar Doddi

I keep hearing Eclipseis better than or way ahead of Visual Studiobut when I installed EclipseI felt it is very clunky and hard to use interface. So I want to know what is so great about Eclipseand if there are others who agree with me.

我的听力Eclipse一直优于或领先,Visual Studio但当我安装时,Eclipse我觉得它的界面非常笨重且难以使用。所以我想知道什么是伟大的Eclipse,是否还有其他人同意我的看法。

I also could not find a similar question that talks about the specific features about Eclipseand their comparison to Visual Studio.

我也无法找到一个类似的问题是关于具体的会谈大约特色Eclipse及其与比较Visual Studio

采纳答案by user168715

Last time I tried Eclipse (about a year ago), I found it to be dog slow. Autocomplete would take multiple seconds to bring up the list of possible matches, for instance. Other elements of the UI were also poorly responsive.

上次我尝试 Eclipse 时(大约一年前),我发现它很慢。例如,自动完成需要几秒钟才能显示可能的匹配项列表。用户界面的其他元素也响应不佳。

回答by Rafal

Well, I have been working with Visual Studio for a some looong time now :-) I have touched Eclipse ONCE long time ago.

好吧,我使用 Visual Studio 已经有一段时间了 :-) 很久以前我接触过 Eclipse 一次。

and now...things changed in my head like a couple of weeks ago when I started developing a project for Android mobile platform..tell you what.... *** ECLIPSE IS BETTER **** yes..I've said it.

现在......事情发生了变化,就像几周前我开始为 Android 移动平台开发项目时一样......告诉你什么...... *** ECLIPSE 更好 **** 是的......我'我说过。

Don't get me wrong. I still love Visual Studio , I've developed many programs using it and it always will be my first love. HOWEVER.... automatic code generation in Eclipse MANY MANY GOOD HINTS it gives you while writing the code.. to place try's, make List not generic but type defined, etc.. analysing your includes ALL THE TIME and eliminating the ones that are not needed anymore, for example I've defined a private FLOAT variable of a class, made a constructor and all the Setters and getters AUTOMATICALLY just by pressing an option in a menu, when I've executed the constructor with a number of precision too high for a float type it automatically suggested changing the private type to double and done all the changes including return types etc:)

不要误会我的意思。我仍然喜欢 Visual Studio,我用它开发了很多程序,它永远是我的初恋。然而……在 Eclipse 中自动生成代码,它在编写代码时为您提供了许多好的提示……放置 try 的,使 List 不是通用的而是类型定义的,等等……分析您的包含所有时间并消除那些是不再需要了,例如我已经定义了一个类的私有 FLOAT 变量,只需按下菜单中的一个选项,就可以自动创建一个构造函数以及所有的 Setter 和 getter,当我也以一定的精度执行构造函数时对于 float 类型,它会自动建议将私有类型更改为 double 并完成所有更改,包括返回类型等:)

ECLIPSE is more like a programmer's companion than a dull REGEX based environment.

ECLIPSE 更像是程序员的伙伴,而不是基于 REGEX 的乏味环境。

回答by mBardos

I just switched back to Visual Studio (was forced to) from 5 years of Eclipse (and Java), so I can make a list of what I miss in it:

我刚刚从 5 年的 Eclipse(和 Java)切换回 Visual Studio(被迫),所以我可以列出我想念的内容:

  • Ctrl+ Shift+ T(Search a class)
  • Ctrl+ O(search the functions of the current class)
  • Ctrl+ right click on a variable/type/etc to go to its definition
  • Show type hierarchy of a class
  • Ctrl+ Click on a function and go to its definition or one of its overriding functions
  • Ctrl+ Shift+ T(搜索类)
  • Ctrl+ O(搜索当前类的功能)
  • Ctrl+ 右键单击​​变量/类型/等以转到其定义
  • 显示类的类型层次结构
  • Ctrl+ 单击一个函数并转到其定义或其覆盖函数之一

And the list goes on and on (refactoring in Eclipse is really good, you have lots of plugins like eclEmma, findBugs, etc).

这个列表还在继续(在 Eclipse 中重构非常好,你有很多插件,比如 eclEmma、findBugs 等)。

I just find VS frustrating to navigate in the code, especially with large projects. But maybe I just did not found these features in VS yet?

我只是发现 VS 在代码中导航令人沮丧,尤其是在大型项目中。但也许我只是没有在 VS 中发现这些功能?

回答by Stephen C

@user168715 - There are a number of things that you can do to make Eclipse slower/faster:

@user168715 - 您可以通过多种方式使 Eclipse 变慢/变快:

  • If you don't give Eclipse enough memory it will be slower. It will spend a lot of time garbage collecting, and will continually be throwing out the cached information that would otherwise speed things up. These combine to make the UI sluggish.

  • If you run Eclipse on a project stored in a network mounted file system, it will be slower.

  • If you launch Eclipse from a network mounted installation it will be slower.

  • If you have lots of large projects open, Eclipse will be slower. This is largely due to the increased memory footprint needed to cache the method signatures etc used for things such as auto-completion.

  • If you run Eclipse on Windows, it will be slower than running on Linux/UNIX for the same hardware configuration. Linux/UNIX has more performant file systems, file system caches and virtual memory managers than Windows. And for a 32 bit platform, Linux can give the JVM more memory than Windows can.

  • 如果你没有给 Eclipse 足够的内存,它会变慢。它将花费大量时间进行垃圾收集,并且会不断丢弃缓存信息,否则会加快速度。这些结合起来使 UI 变得迟钝。

  • 如果在存储在网络安装文件系统中的项目上运行 Eclipse,它会变慢。

  • 如果您从网络安装的安装中启动 Eclipse,它会变慢。

  • 如果您打开了大量大型项目,Eclipse 会变慢。这主要是由于缓存用于诸如自动完成之类的方法签名等所需的内存占用增加。

  • 如果在 Windows 上运行 Eclipse,对于相同的硬件配置,它会比在 Linux/UNIX 上运行慢。与 Windows 相比,Linux/UNIX 具有更高性能的文件系统、文件系统缓存和虚拟内存管理器。对于 32 位平台,Linux 可以为 JVM 提供比 Windows 更多的内存。

EDIT- I notice that @ssahmed555's experience contradicts my last point ... but this is myexperience.

编辑- 我注意到@ssahmed555 的经验与我的最后一点相矛盾......但这是我的经验。

回答by Ben Burnett

There are always things in one development environment that aren't in another, but at the end of the day it comes down to two things. 1) What one you prefer to use. 2) What one you can afford. Eclipse is free which is a very big feature for a lot of people.

在一个开发环境中总有一些东西在另一个开发环境中没有,但归根结底归结为两件事。1)您更喜欢使用哪一种。2)你能负担得起的。Eclipse 是免费的,这对很多人来说是一个非常重要的功能。

You have them both installed so why don't you try one for a little bit, and then try the other for a little bit and make up your own mind. I can tell you what people will tell you is better.

您已经安装了它们,所以为什么不先尝试一个,然后再尝试另一个,然后下定决心。我可以告诉你人们会告诉你的更好。

If they use VS they will tell you VS is better, and if they use Eclipse they'll tell you that Eclipse is better.

如果他们使用 VS,他们会告诉您 VS 更好,如果他们使用 Eclipse,他们会告诉您 Eclipse 更好。

回答by shuss

Both Eclipse and Visual Studio are good IDE. They have their advantages and disadvantages so I am hesitant to state "X is better than Y".

Eclipse 和 Visual Studio 都是不错的 IDE。它们各有优缺点,所以我不敢说“X 比 Y 好”。

However, there are some things that I really like about Eclipse:

但是,有一些我非常喜欢 Eclipse 的地方:

  1. Adding Plugins. You can add plugins in Visual Studio too but Eclipse seems to do it much better. Updates are much also easier.
  2. Keybindings. I find keybindings on Eclipse to be a more intuitive and easier (Ctrl+Click on an identifier to go to its definition makes more sense to me than hovering over the attribute and clicking F12)
  3. Eclipse has better refactoring tools out of the box.
  1. 添加插件。您也可以在 Visual Studio 中添加插件,但 Eclipse 似乎做得更好。更新也容易得多。
  2. 键绑定。我发现 Eclipse 上的键绑定更直观和更容易(Ctrl+单击标识符以转到其定义对我来说比将鼠标悬停在属性上并单击 F12 更有意义)
  3. Eclipse 具有更好的现成重构工具。

Having said that, the language you are using will determine which is the more appropriate IDEA. For Java, Python, Ruby, etc, I would go with Eclipse since there are some really good plugins for it. For languages developed/maintained by Microsoft (such as C#, VB.Net, etc), I would go with Visual Studio since it will probably have better built-in support.

话虽如此,您使用的语言将决定哪种 IDEA 更合适。对于 Java、Python、Ruby 等,我会选择 Eclipse,因为它有一些非常好的插件。对于 Microsoft 开发/维护的语言(例如 C#、VB.Net 等),我会选择 Visual Studio,因为它可能具有更好的内置支持。

回答by SigTerm

For me, in order to be useful, IDE should meet following requirements:

对我来说,为了有用,IDE应该满足以下要求:

  1. It should be possible to kill every damn toolbar and button, tab captions and so on in order to maximize working space.
  2. Ide should support non-monospace font.
  3. It should be possible to summon any window (file list, output, etc) with key combo and dismiss it with escape.
  4. No pixel should be wasted on screen. No rounded buttons, no extra spacing between text and widget border are allowed.
  5. It should be possibel to work without mouse, using keyboard only.
  1. 为了最大化工作空间,应该可以删除所有该死的工具栏和按钮、标签标题等。
  2. Ide 应该支持非等宽字体。
  3. 应该可以使用组合键召唤任何窗口(文件列表、输出等)并通过转义将其关闭。
  4. 屏幕上不应浪费任何像素。不允许圆形按钮,文本和小部件边框之间不允许有额外的间距。
  5. 应该可以在没有鼠标的情况下工作,只使用键盘。

Any other functionality is optional, including autocomplete.

任何其他功能都是可选的,包括自动完成。

I.e. my working environment normally look like this. This is a most efficient layout for me.

即我的工作环境通常是这样的。这对我来说是最有效的布局。

Last time I tried eclipse (2..3 years ago) it couldn't satisfy #1 and #4. There were buttons that could not be removed, some interface elements were needlessly curvy and rounded and took extra screen space without real need for that. It also wasn't fast enough. I spent some time trying to fix those problems, gave up and lost interest. Maybe there were some deviously hidden options that could be useful to fix those problems, but I never tried eclipse again. And I probably won't try it again, because my IDE works for me. I must admit, that although I don't exactly like Microsoft, their IDE (2008 edition, at least) is very close to perfection (it still has quite a lot of problems, though)

上次我尝试 eclipse(2..3 年前)时,它无法满足 #1 和 #4。有一些按钮无法移除,一些界面元素不必要地弯曲和圆润,并在没有真正需要的情况下占用了额外的屏幕空间。它也不够快。我花了一些时间试图解决这些问题,放弃并失去了兴趣。也许有一些狡猾的隐藏选项可能有助于解决这些问题,但我再也没有尝试过 eclipse。我可能不会再尝试了,因为我的 IDE 适合我。我必须承认,虽然我并不完全喜欢微软,但他们的 IDE(至少 2008 版)非常接近完美(但它仍然有很多问题)

From my experience, there are two other editors that could be used as a VS replacement (on Linux) - jEdit and Kate. And if you can live with monospace font, vim is also quite useful.

根据我的经验,还有另外两个编辑器可以用作 VS 替代品(在 Linux 上)——jEdit 和 Kate。如果您可以使用等宽字体,vim 也非常有用。

回答by Cyberycon

Visual Studio and Eclipse are both excellent IDEs with a wealth of features. I've never found Eclipse to be particularly slow, although it will occasionally pause (I wonder if the JVM is garbage collecting). I haven't used the C++ plugins with Eclipse, but the advantage Visual Studio has is that it supports C++ as one of its "native" languages. If you are doing Windows development, you are probably best of with Visual Studio.

Visual Studio 和 Eclipse 都是具有丰富功能的优秀 IDE。我从来没有发现 Eclipse 特别慢,尽管它偶尔会暂停(我想知道 JVM 是否在进行垃圾收集)。我没有在 Eclipse 中使用 C++ 插件,但 Visual Studio 的优势在于它支持 C++ 作为其“本机”语言之一。如果您正在进行 Windows 开发,那么您可能最适合使用 Visual Studio。

If you want to develop for other platforms, Eclipse is likely to be worth a second look.

如果您想针对其他平台进行开发,Eclipse 可能值得再看一看。

I've developed plugins for both, and I recently wrote a comparison, here: http://geekswithblogs.net/cyberycon/archive/2011/05/01/eclipse-vs-visual-studio.aspx

我已经为两者开发了插件,最近我在这里写了一个比较:http: //geekswithblogs.net/cyberycon/archive/2011/05/01/eclipse-vs-visual-studio.aspx

回答by Justin Ethier

For one, Eclipse is cross-platform whereas Visual Studio only runs on Windows.

一方面,Eclipse 是跨平台的,而 Visual Studio 只能在 Windows 上运行。

回答by ssahmed555

Prior versions of Visual Studio didn't have very many customization (i.e. preferences) options. In that regard I've always thought Eclipse presented a wealth of options for tweaking preferences and customizing your setup.

Visual Studio 的早期版本没有很多自定义(即首选项)选项。在这方面,我一直认为 Eclipse 提供了大量用于调整首选项和自定义设置的选项。

But a cursory look at Visual Studio 2008 reveals that the MS IDE now sports a competing array of customization & preferences options. I suspect that VS 2010 is no worse in this regard.

但是粗略地看一下 Visual Studio 2008,就会发现 MS IDE 现在支持一系列相互竞争的自定义和首选项选项。我怀疑 VS 2010 在这方面也不差。

One advantage of Visual Studio is that depending on the version/edition (Express, Professional, Team System, etc.) you have installed, in addition to the VS IDE and the compiler tools you'll get a plethora of supporting development, debugging, and platform tools. I am currently using VS 2008 Professional edition, and it has an extensive array of supporting tools installed on my system.

Visual Studio 的一个优势是,根据您安装的版本(Express、Professional、Team System 等),除了 VS IDE 和编译器工具之外,您还将获得大量支持开发、调试、和平台工具。我目前使用的是 VS 2008 专业版,它在我的系统上安装了大量的支持工具。