Java Code Update on Visual Studio Focuses on “Inner Loop” – Visual Studio Magazine

News

Java on Visual Studio Code update focuses on “inner loop”

In its latest article of 2021, the Java on Visual Studio Code development team reports on the progress made to improve the fundamental, everyday Java development experience: the “inner loop”.

It is the most tedious development process: coding, building, adjusting, debugging, testing, etc. continuously in repeated cycles as a project takes shape, before it is 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 small things – are welcomed by developers everywhere.

“The inner-loop development experience has a direct impact on daily developer productivity and this area will always be our focus,” said Nick Zhu, senior program manager, in a Dec. 15 post about some of those little things. . He specifically detailed three improvements to the inner loop:

  • Project Management — Delete .project metadata files:This is a three year old issue where a developer complained “Whenever I open a Java project, no matter Maven or Gradle, the extension always creates many .project .settings/ files. classpath in my project folder.” He justified his own blog post earlier this month: “Say goodbye to ‘.project’ files in Language Support for Java 1.1.0.” As the title of this article suggests, this is the Extension Pack for Java, which includes Red Hat’s Language Support for Java extension. “We have good news for you,” Zhu said in his post yesterday. “Visual Studio Code no longer generates those hidden ‘.project’ metadata files in the project path when you import a new Java project!”
  • Testing — Navigate between tests and corresponding test subjects: Developers can now navigate between the test and the corresponding test subjects, which is useful when writing unit test cases.
    animated gif showing navigation between tests and corresponding test subjects
    [Click on image for larger, animated GIF view.] Navigate 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 detected issues highlighted by green squiggles, announced by a light bulb icon near the source code when the cursor is over a squiggle or text box selected. Now such light bulbs appearing next to a Java class can generate constructors or override/implement methods.

The post also explains an investigation of character encoding issues and advice on how to deal with issues resulting from Windows’ platform-dependent character set (Llinux and macOS just use the UTF-8 character set ).

About the Author

David Ramel is an editor and writer for Converge360.

Comments are closed.