Java on Visual Studio Code的更新 – 2024年6月

Table of Contents
- Project Settings Page Enhancements
- Compiler Configuration
- Maven Options
- Formatter Configuration
- Convenient Access to Project Settings Page
- Test Coverage
- Build Server for Gradle in Google Summer Projects
- Spring Feature Updates
Project Settings Page Enhancements
Compiler Configuration
- Addition of a new Compiler Configuration tab in the project settings page for setting Java compiler options.
- Options include source and target compatibility, --release option for cross-compilation, and custom class file generation.
Maven Options
- Addition of a Maven tab for easy configuration of the Maven settings by specifying the Maven configuration file.
Formatter Configuration
- Enhanced way to access the formatter configuration in the project section, guiding users to create or set up a formatter.
Convenient Access to Project Settings Page
- Improved accessibility to the project settings page through the Java status menu in the status bar.
Test Coverage
- Introduced in April, the test coverage feature allows Java developers to easily view code test coverage in Visual Studio Code.
Build Server for Gradle in Google Summer Projects
- Visual Studio Code Java team is guiding two Gradle Build Server projects in Google Summer Projects:
- Gradle Build Server – Support for Android projects by Tanish Ranjan.
- Gradle Build Server – Development experience and language support in Buildship by Sidhaarth Saraswathi Ramalingam.
Spring Feature Updates
- Support for @DependsOn annotation, providing quick bean navigation and code completion for defining component dependencies.
- Validation for JPQL and HQL queries in @Query annotation for easy error detection.
- Upgrade support for Spring Boot projects to the latest Spring Boot 3.3 version.
To access the mentioned features, install the Extension Pack for Java.
If you are a Spring developer working on Spring Boot applications, download and install the Spring Boot Extension Pack for a specialized development experience.
Your feedback and suggestions are valuable for shaping the future of Java on Visual Studio Code. You can provide feedback through various channels like filling out a survey, leaving comments, creating GitHub issues, or sending emails.
For more information, resources, and Java tutorials on Visual Studio Code, visit the links provided in the post.