eclipse Java IDE 与 Microsoft IDE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3554944/
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
Java IDEs vs Microsoft IDEs
提问by Koekiebox
I come from a strong Java background and in recent years have been also developing in C#.
我来自强大的 Java 背景,近年来也一直在使用 C# 进行开发。
What I can never understand is how far behind (Personal Opinion) the Visual Studio IDE's are in compared with Intelli-J IDEA and Eclipse (Java).
我永远无法理解的是,Visual Studio IDE 与 Intelli-J IDEA 和 Eclipse(Java)相比落后多少(个人意见)。
There have been improvements by Microsoft from VS 2005 to VS 2008, but I feel they are not quite there in terms of taking the development experience to the next level.
从 VS 2005 到 VS 2008,Microsoft 进行了一些改进,但我觉得它们在将开发体验提升到一个新的水平方面还不够完善。
What I want to know is, is VS 2010 any different?
我想知道的是,VS 2010 有什么不同吗?
Why is it that the tools and syntax editors are so much more "evolved" in the Java IDE's.
为什么工具和语法编辑器在 Java IDE 中更加“进化”。
Just to name a few:
仅举几个:
- Code Completion (Much more advance in Java IDE's)
- Ant Integration (Eclipse and IDEA) vs Visual Studio Build Events
- Lack of Code Repository integration in VS (Subversion and CVS) out of the box.
- Lack of Advance Re-factoring Tools in Visual Studio.
- 代码完成(Java IDE 的更多进步)
- Ant 集成(Eclipse 和 IDEA)与 Visual Studio 构建事件
- VS(Subversion 和 CVS)中缺少开箱即用的代码存储库集成。
- Visual Studio 中缺少高级重构工具。
Thanks.
谢谢。
回答by Ian Ringrose
A few points…
几点…
People tend to like what they know.
It is quicker to get up-to-speed in C# as the IDE and most of the tools / docs come from a single source.
In the Java world you have a lot more chooses, this is great for expert that spend times learning about them all, but does also lead to its own problems.
Adding ReSharperor Refactorto Visual Studio may give you what you want.
The Visual Studio debugging is great.
Visual Studio tries to make life easy for you by trying to find missing dlls etc and then storing where they are in the registry. This may be great for a 1 man project, but can often lead to build problems across developer's machines if you are not careful. In the Java world you have to edit more config file by hand, but at least you can put these files under source code control.
There is not a smallcommand line tool that works well on a build serverthat will build alltypes of Visual Studio projects. However in day to day usage you don't need to learn how to use command tools, as Visual Studio hides them form you.
人们往往喜欢他们所知道的。
由于 IDE 和大多数工具/文档都来自单一来源,因此在 C# 中可以更快地获得最新进展。
在 Java 世界中,您有更多选择,这对于花时间了解所有这些的专家来说非常有用,但也会导致其自身的问题。
Visual Studio 调试很棒。
Visual Studio 试图通过尝试查找丢失的 dll 等,然后将它们存储在注册表中的位置,让您的生活变得轻松。这对于 1 人项目可能非常有用,但如果您不小心,通常会导致跨开发人员的机器构建问题。在 Java 世界中,您必须手动编辑更多配置文件,但至少您可以将这些文件置于源代码控制之下。
没有一个小的命令行工具可以在构建所有类型的 Visual Studio 项目的构建服务器上运行良好。但是,在日常使用中,您不需要学习如何使用命令工具,因为 Visual Studio 会将它们隐藏起来。
I think these days most programmers are just happier with the IDE they know best.
我认为现在大多数程序员只是对他们最了解的 IDE 更满意。
Note I wrote this over 6 years ago, since then C#/.Net has got a lot more complex, with lots of open source projects. Microsoft has also open sourced a lot of the .net framework. For web and server side development I expect there is now little to choose between the Java world and the .Net world. For “smart clients” .net still have a lot to offer including the new support from cross device phone development.
注意我在 6 年前写了这篇文章,从那时起 C#/.Net 变得更加复杂,有很多开源项目。微软也开源了很多 .net 框架。对于 Web 和服务器端开发,我希望现在在 Java 世界和 .Net 世界之间几乎没有选择。对于“智能客户端”,.net 仍然可以提供很多功能,包括跨设备手机开发的新支持。
For multi-threaded IO, I think c# is years ahead of Java, but that could change as C# and Java keeps learning from each other...
对于多线程 IO,我认为 c# 比 Java 领先很多年,但是随着 C# 和 Java 不断相互学习,这种情况可能会改变......
回答by Jon Skeet
Visual Studio has definitely been coming on over the last few years - although many of the improvements havebasically been things that Eclipse has had for ages (I haven't used IDEA myself).
Visual Studio中,肯定是未来在过去的几年里-虽然很多的改进,已经基本得到的东西,Eclipse已经过了好半天(我还没有使用IDEA自己)。
You may well want to look at ReSharper, which brings more goodness to Visual Studio, along with the VS2010 Productivity PowerTools.
您可能很想看看ReSharper,它为 Visual Studio 带来了更多好处,以及VS2010 Productivity PowerTools。
Also, have a look at Scott Guthrie's blog series about improvements in VS2010. Lots of goodies in there.
另外,请查看 Scott Guthrie 的关于VS2010 改进的博客系列。里面有很多好吃的。
All tools have their strengths and weaknesses - these days I'm about as happy in Visual Studio as in Eclipse... although I'm much happier writing C# than Java :) One area where Visual Studio really shines is debugging though... I find things like the VS Watch window to be muchbetter than Eclipse's equivalent.
所有工具都有其优点和缺点——现在我在 Visual Studio 中和在 Eclipse 中一样快乐......尽管我编写 C# 比 Java 更快乐 :) Visual Studio 真正闪耀的一个领域是调试......我发现 VS Watch 窗口之类的东西比 Eclipse 的等价物要好得多。
回答by lukyer
Visual studio 2017 is still far far behind Intellij IDEA. I'm using both and i can say that even VS2017 with ReSharper is not comparable with IDEA.
Visual Studio 2017 仍然远远落后于 Intellij IDEA。我正在使用两者,我可以说即使是带有 ReSharper 的 VS2017 也无法与 IDEA 相提并论。
Biggest problem for me is that VS still doesn't offer usable hot reload debugging experience. I'm crying every time i have to rebuild my .NET MVC project (it is +- fast, but IIS Express load time ~ 15s EVERY time you make even the smallest change in your code).
对我来说最大的问题是 VS 仍然不提供可用的热重载调试体验。每次我不得不重建我的 .NET MVC 项目时我都在哭(它是 +- 快,但是每次你对代码进行最小的更改时 IIS Express 加载时间 ~ 15 秒)。
If you want to argue with "Edit and continue" so so hotreload function - it is absolutely useless, you can't do almost any change in code without rebuilding (and everytime you have to manually break code and close opened tab with useless information).
如果您想与“编辑并继续”争论,那么 hotreload 功能 - 它绝对没用,您几乎不能在不重建的情况下对代码进行任何更改(并且每次您必须手动破坏代码并关闭带有无用信息的打开选项卡) .
So i'm really looking forward for full version of IntelliJ Rider bringing all super user friendly possibilities of IntelliJ IDEA to the .NET world!
所以我真的很期待完整版的 IntelliJ Rider 将 IntelliJ IDEA 的所有超级用户友好的可能性带到 .NET 世界!
回答by bahadir arslan
I don't agree with you. I think VS is much more easy to use. For example, when i need to create a web application. I open VS and create a new project (Web Application). After the project created, i press f5 and tadda!... But if want to create my web application with Java, i need to install a server or some frameworks. Still i don't know how can i create a web application?
我不同意你的看法。我认为VS更易于使用。例如,当我需要创建一个 Web 应用程序时。我打开 VS 并创建一个新项目(Web 应用程序)。创建项目后,我按 f5 和 tadda!...但是如果想用 Java 创建我的 Web 应用程序,我需要安装一个服务器或一些框架。我仍然不知道如何创建 Web 应用程序?
Or, Windows Application. At VS, you don't need do any thing to create a windows based application like web application. but if i want to create windows based application with Java, i had to do something.
或者,Windows 应用程序。在 VS,您不需要做任何事情来创建像 Web 应用程序这样的基于 Windows 的应用程序。但是如果我想用 Java 创建基于 Windows 的应用程序,我必须做一些事情。
I think VS IDE is more user friendly than Java IDE's.
我认为 VS IDE 比 Java IDE 对用户更友好。