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

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube