I started as a C++ programmer, and Visual studio has worked splendedly for me. However, I recently have wanted to branch out to C# and Java. Visual studio supports C# and I now have some experience with it, but it does not support Java. Does anyone have any tips for me to allow Visual Studio to be used with Java? I was thinking of trying to use the add-in wizard of the Visual Studio SDK to create an extention for Java support, but before I started diving in to something possibly quite complicated, I was wondering if anyone here had attempted this before and might have some advice for me for approaching this problem. After much searching the internet, I found no Java support for visual studio, and the few workarounds I found were quite sub par.
To clarify:
I want to write an add in for Visual studio 2012 that will allow it to work with Java prgramming. I want when I create a project file to have the option of making a .java file, and when I compile, I want it to compile using the javac compiler (I have it downloaded already).
ADDITIONAL DETAILS:
I am aware that there are already Java IDEs out there, such as eclipse, I just wanted to know if it was possible to get it working with visual studio. I greatly enjoy visual studio and have been using it for some time now, and I would love to be able to program in all the languages I know using the same interface.
Yes, C# is a sort of beefed up Java, but there are some things I may need to do that need Java specifically, so I am going to need a way to write those. I can use eclipse or another IDE, but I would prefer visual studio if possible.
Support for Java in Visual Studio Code is provided through a wide range of extensions. Combined with the power of core VS Code, these extensions give you a lightweight and performant code editor that also supports many of the most common Java development techniques.
Try to update Language Support for Java to the latest, and then try step 3 to rebuild the workspace. If it doesn't work, then try to install an older JDK version, set its installation folder to "java. home" user setting in . vscode/settings.
Visual Studio Code 1.67 (for Java development) Among other innovations, Visual Studio Code now has good support for editing, running, and debugging Java code through a set of Java-specific extensions.
Open your Java code file in Text Editor, then use shortcut Ctrl+Alt+N , or press F1 and then select/type Run Code , or right click the Text Editor and then click Run Code in context menu, the code will be compiled and run, and the output will be shown in the Output Window.
There is a visual studio plugin to support the java language: http://visualstudiogallery.msdn.microsoft.com/bc561769-36ff-4a40-9504-e266e8706f93
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With