News

'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 at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube