News

Java on Visual Studio Code Update Focuses on 'Inner Loop'

In its final post of 2021, the Java on Visual Studio Code dev team reports advancements made to improve the fundamental, day-to-day Java development experience: the "inner loop."

That's the grunt-work dev process: continually coding, building, tweaking, debugging, testing and so on in repeated cycles as a project takes shape, before it gets finalized and entered into a version control system or DevOps workflow implementation. It can be tedious, and any tweaks made to smooth things out -- even very little things -- are welcomed by developers everywhere.

"Inner-loop dev experience directly impacts developer's day-to-day productivity and this area will always be our top focus," said Nick Zhu, senior program manager, in a Dec. 15 post some of those little things. He specifically detailed three inner loop improvements:

  • Project Management -- Remove .project metadata files:This is a three-year-old issue where a developer complained "Every time I open a Java project, no matter Maven or Gradle, the extension always creates many .project .settings/ .classpath files in my project folder." It warranted its own blog post earlier this month: "Say goodbye to '.project' files in Language Support for Java 1.1.0." As the title of that post indicates, it pertains to the Extension Pack for Java, which includes that Language Support for Java extension by Red Hat. "We have good news for you," Zhu said in yesterday's post. "Visual Studio Code no longer generates those hidden '.project 'metadata files in the project path when you import a new Java project!"
  • Testing -- Navigating between tests and corresponding test subjects: Developers can now navigate between test and corresponding test subjects, useful when writing unit test cases.
    animated gif showing Navigating Between Tests and Corresponding Test Subjects
    [Click on image for larger, animated GIF view.] Navigating Between Tests and Corresponding Test Subjects in Animated Action (source: Microsoft).
  • Code Actions -- Generate constructors and override/implement methods: Code Actions provide refactorings and Quick Fixes for issues that are detected and highlighted with green squiggles, announced by a lightbulb icon near the source code when the cursor is on a squiggle or selected text region. Now, such lightbulbs appearing next to a Java class can generate constructors or override/implement methods.

The post also explains an investigation into character encoding issues and advice on how to handle problems resulting from Windows' platform-dependent charset (Llinux and macOS simply use the UTF-8 charset).

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

  • 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."

Subscribe on YouTube