'Getting Started' with Java in Visual Studio Code Now Easier

Developers using Java tooling with Visual Studio Code now have a better "Getting Started" experience thanks to new functionality in the September Java extensions update.

Microsoft is continuing previous efforts to help developers using the most popular programming language (by many accounts) with the most popular development tool (by many accounts), recently embodied by a new installer unveiled in June.

To that end, VS Code/Java newbies can launch the revamped Getting Started experience -- featuring a quick start guide -- simply by installing the Java Extension Pack and typing in the command: Java:Getting Started.

Java Getting Started
[Click on image for larger view.] Java Getting Started (source: Microsoft).

In addition to the quick start guide, the experience includes tips for code editing and debugging and an FAQ, with more goodies on tap.

And that's not the only enhancement to Java in Visual Studio Code for rookies.

"One of the other hurdle for new Java developer is to get the JDK right," said Xiaokai He, senior program manager for Java on Visual Studio Code and Azure, in a Sept. 16 blog post. "For that, we've also upgraded our Configure Java Runtime page which now shows the JDK configuration we detect with priority order and allow you to jump to the setting by a simple click. If a working JDK configuration is not detected, this page will be presented automatically, otherwise you can also use the command Java: Configure Java Runtime to get there."

But wait, there's more for newbies: The VS Code Installer for Java (Note: clicking on link will trigger download) has also been updated, boosting the downloading and installation experience.

For more experienced developers and newcomers alike, the September update includes new refactoring and code action features (including move member and class), live linting and improvements for Debugger, Test Runner and Maven:

  • Refactoring and Code Actions: Move refactoring support -- "The Move refactoring lets you move packages and classes between the source roots of a project, class members to other classes and inner classes to upper hierarchy levels."
  • Linting and Checkstyle: "We now support Live Linting and batch check for Java through Checkstyle extension so you no longer need to save the file one by one to update the check result."
  • Debugger: "One of the changes we've recently made is to use integrated terminal as default debug console. With this change, you no longer need to make specific configuration to allow the console to accept your input. The only drawback of this change is the integrated terminal doesn't support expression evaluation. In order to use this feature, you would now need to change the console to use the Internal Console in launch.json."
  • Test Runner: "More JUnit 5 annotations are now supported by VS Code Java Test Runner."

To get started with VS Code Java development, a good place to go first are the step-by-step Java Tutorials on Visual Studio Code.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • How to Create a Machine Learning Decision Tree Classifier Using C#

    After earlier explaining how to compute disorder and split data in his exploration of machine learning decision tree classifiers, resident data scientist Dr. James McCaffrey of Microsoft Research now shows how to use the splitting and disorder code to create a working decision tree classifier.

  • Microsoft: Move from Traditional ASP.NET to 'Core' Requires 'Heavy Lifting'

    There are plenty of reasons to move traditional ASP.NET web apps -- part of the old .NET Framework -- to the new cross-platform direction, ASP.NET Core, but beware it will require some "heavy lifting," Microsoft says.

  • Purple Blue Nebula Graphic

    How to Compute Disorder for Machine Learning Decision Trees Using C#

    Using a decision tree classifier from a machine learning library is often awkward because it usually must be customized and library decision trees have many complex supporting functions, says resident data scientist Dr. James McCaffrey, so when he needs a decision tree classifier, he always creates one from scratch. Here's how.

  • Blazor's Future: gRPC Is Key

    Blazor guru Steve Sanderson detailed what Microsoft is thinking about the future of the revolutionary project that enables .NET-based web development using C# instead of JavaScript, explaining how gRPC is key, along with a new way of testing and a scheme for installable desktop apps.

  • Don't Do It All Yourself: Exploiting gRPC Well Known Types in .NET Core

    If you're creating business services that send dates and decimal data then you may be concerned that gRPC services don't support the relevant data types. Don't Panic! There are solutions. Here's how to use them.

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events