开发者

Java in Visual Studio 2010?

开发者 https://www.devze.com 2023-01-06 00:21 出处:网络
Is there any way to manage/debug/compile Java projects in Visual Studio 2010?开发者_如何学Go Before you answer, please read this topic.I\'m a little late to the party, but it looks like someone has s

Is there any way to manage/debug/compile Java projects in Visual Studio 2010?开发者_如何学Go

Before you answer, please read this topic.


I'm a little late to the party, but it looks like someone has started adding support. From the description, right now it only does syntax highlighting and basic navigation within a single file. However, in the Q&A section the author mentions plans to add compilation and debugging support later in the year.


The short answer - No.

The long answer - No, because the supposed intellisense support for Java that the blog entry referred to, in the question, relies on J# support. I believe it has been quite sometime since Microsoft has discontinued J# - VS2008 does not have it.

In the long run, you're better off learning how to use Eclipse/Netbeans/IntelliJ IDEA or any other IDE for the purpose of managing Java projects.


Sure. Visual Studio works with any language so long as someone takes the time to write the plug-ins for it. Heck, Mainsoft has already added JVM debugging support to Visual Studio. They just don't support the language.

The only problem is YOU are going to have to be the one who writes it.

I won't lie to you. It won't be easy and fan-boys on both sides will hate you for it. But if you pull it off I can at least offer you some money to write about how you did it.


No, although, I long for the day when VS might possibly support building Java applications. I don't think I have yet found an IDE as fully featured. Personally, if VS supported Java development, then I would trash my installation of Eclipse and Netbeans. ... so tired of wonky Java IDEs....


Cyberduck is written in Java and developed in Visual Studio 2010, though it requires IKVM, an implementation of Java for Mono and the Microsoft .NET Framework. Here are the build instructions.


C++ syntax highlighting looks pretty good for Java. Turn this on in Options->Text Editor->File Extension.

  • Extension: java
  • Editor: Microsoft Visual C++

Now reopen a .java file and see pretty colors.


I will advise to go for Eclipse, if you have to do at least 25% Java coding. Otherwise VS is good as well. But I like Eclipse for C++ as well as Java.


A new plugin is currently being developed named IntegraStudio, aiming at full Java development under VS. It currently supports:

  • IntelliSense for Java (comparable to standard C++ IntelliSense in VS)
  • build with Ant or Maven
  • direct Ant / Maven project view in Solution Explorer
  • Java debugger with container visualization
  • support for VS browsing features (Class View, Code definition, etc.)
  • Class View works also for classes in JARs (including standard library)
  • browsing Maven repositories
  • JDK: 1.6 - 1.8

It uses standard JDK tools and targets the real Java platform (it is not a .NET platform solution, as VJ# was).

At the moment of writing this, the IntegraStudio plugin is beta.

It does not yet contain advanced Eclipse features, however many of them are in current roadmap (e.g. code refactorings and quick fixes).

You can find it on Visual Studio gallery:

http://visualstudiogallery.msdn.microsoft.com/588fb167-d18c-4e61-8aeb-30baeddb00da

The product official website is:

http://www.softerg.com/integra

Current docs (with large number of screenshots):

http://www.softerg.com/integra/docs/pages/is_intro.htm

0

精彩评论

暂无评论...
验证码 换一张
取 消