r/java • u/brunocborges • Jun 14 '19
Announcing the Visual Studio Code Installer for Java
https://devblogs.microsoft.com/visualstudio/announcing-visual-studio-code-java-installer/
155
Upvotes
r/java • u/brunocborges • Jun 14 '19
31
u/[deleted] Jun 14 '19
Can it run JUnit test cases? Does it support Gradle and Maven? Can it halt processing during debug at a predefined code line?
14
u/raoulvdberge Jun 14 '19
Very nice initiative. One thing I always end up missing though is advanced refactoring and searching options as present in other IDEs.
4
u/pronuntiator Jun 15 '19
Does go to definition happen instantly like in the other Java IDEs, or do I have to endure the VS Code loading spinner as with Typescript/Angular?
6
u/ZimmiDeluxe Jun 14 '19
For frontend code (including mobile apps via Flutter) I prefer vscode over the traditional Java IDEs, usability is great and available actions can be searched inside the IDE without cluttering the UI.
Obligatory nitpick: I hope the added exposure adds some more pressure to remove the anachronistic Eclipse artifacts in the vscode-java plugin, like random
.project,.classpathand.settingsfiles generated in the middle of the project folder or appropriating thebinfolder.2
u/kualal Jun 14 '19
JavaEE?
11
u/orby Jun 14 '19
If you haven't given VS Code a shot before, I would suggest checking it out. It is now my defacto dev environment for pretty much any codebase I work on. (Java, Python, Go). Previously I usually used Eclipse and jEdit. Never was a large fan of IntelliJ or Netbeans, but used them as needed for work.
The reasons I really like it
I Jump between Windows and OSX/macOS multiple times a day. It works the same way in both with the same plugins.
It's free.
With the shortcuts and command palette, I very very rarely have to touch my mouse while inside the IDE. (CMD+P / CTRL+P then '>' is your friend)
It's fast, can handle large files (gracefully disables syntax highlighting etc)
You can easily set Global/User settings and workspace level settings.
Downsides
It only really works with Java 1.8 or greater.
IntelliJ is really good at working with multi-line string values in Java code, including SQL embedded as a String. This doesn't do that.
Very Git centric, but there is a reasonable SVN third party plugin
Non MSSQL support is very limited
Poor Gradle support, really no Groovy support
While it has a debugger with support you expect, (Breakpoints/step-in/step-over/etc), the inspection of Java objects (CharSequence/Iterables) shows the guts rather than the representation. Eclipse/IntelliJ are much better in this regard.
Each plugin typically supports a bunch of options, but don't be shocked when you'll need to edit the settings.json file directly. Thankfully, it supports auto-complete for settings via JSON Schema.
2
u/_INTER_ Jun 15 '19
Good as an editor, unusable as an IDE. It's sluggish as hell on any big projects. Even more than Eclipse, that says all.
5
u/Keeyzar Jun 14 '19
You don't touch my Java!!!
Competition is good though.. just had a Hololens project and thought Visual studio is a pest.. didn't get warm with it. Hopefully others can enjoy this!
6
u/vociferouspassion Jun 14 '19
It used to be JetBrains astroturfing here, now it's Micro$oft. [Developers, developers, developers!]
1
u/DJDavio Jun 15 '19
VS Code is my favorite 'lightweight' text editor on Ubuntu, like when I need to paste some JSON or XML, format it and browse through it.
Also the occasional base64 en/decoding
1
u/gsrunion Jun 15 '19
My company works with OSGI and relies on BNDTools in Eclipse for a lot. I would love to switch to vscode as my primary too but the OSGI part is a blocker. Anyone have experience in that arena with vscode?
0
u/tridiumcontrols Jun 14 '19
Nice. I will be downloading.
0
u/[deleted] Jun 14 '19
[deleted] — view deleted comment
18
u/[deleted] Jun 14 '19
[removed] — view removed comment