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

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

  • Introduction to .NET Aspire

    Two Microsoft experts will present on the cloud-native application stack designed to simplify the development of distributed systems in .NET at the Visual Studio Live! developer conference coming to Las Vegas next month.

  • Microsoft Previews Copilot AI for Open-Source Eclipse IDE

    Catering to Java jockeys, Microsoft is yet again expanding the sprawling reach of its Copilot-branded AI assistants, previewing a coding tool for the open-source Eclipse IDE.

Subscribe on YouTube

Upcoming Training Events