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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

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

Subscribe on YouTube

Upcoming Training Events