News

Visual Studio Code Gets More Java Love, Including New Code Actions

Fresh on the heels of a new installer that eases the setup of Java in Visual Studio Code, the dev team for Microsoft's wildly popular open source, cross-platform code-editor-that-acts-like-an-IDE just announced more Java goodies.

Principal among those are new Java code actions.

"Developers need refactoring and code actions to achieve high productivity, so we’re bringing more of those features to you," said Xiaokai He, senior program manager, Java on Visual Studio Code and Azure, in a June 24 post.

Those features include:

  • Enhanced generate getters and setters: "In addition to bulk generate getters and setters for all member variables, if the class has more than one field, the source action will also prompt a quick pick box which allows you to select the target fields to generate the accessor methods."
  • Generate delegate methods: "This new code action enables generating delegate methods."
  • Generate constructor: "This source action helps adding constructor from super class."
  • Assign parameter to new field: "This source action assigns parameter to new field for unused constructor parameter(s)."

Last month's Java update to VS Code brought new code actions to resolve ambiguous imports, generate toString() and more.

Other new updates provided to VS Code Java tooling in the new June release include performance improvements and updates to the debugger, Maven and Test Runner.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube