Some updates about Spring
Spring is an important part of the overall development of Java. In order to provide developers with a satisfactory Spring project development experience, our team has been cooperating with VMWare for a long time and is committed to providing good support for Spring related tools on Visual Studio Code.
❶The perfect integration of Spring and GitHub Codespaces
We are happy to share with you – GitHub Codespaces has fully integrated support for Spring related frameworks. This means that developers can use Visual Studio Code in the browser to seamlessly develop Spring applications, and there is no need to install anything on the local machine. The following is a simple demonstration of running the Spring Petclinic project on GitHub Codespaces.
❷Spring tool ecosystem on Visual Studio Code
In addition to the Spring support on GtiHub Codespaces, we also made a sharing about the existing Spring tool support in Visual Studio Code. This includes a complete demonstration of how to create a Spring Boot application from scratch, and open and run an existing project (such as Spring PetClinic). We also talked about the rich plug-in options for Visual Studio Code. For example, the existing cloud-related plug-ins allow developers to deploy Spring applications directly to the cloud.
The Spring ecosystem is an important part of Java application development. We will continue to invest in this area and ensure that Spring developers have an excellent experience in Visual Studio Code.
In addition to Spring's related updates, we have also made a series of improvements in user experience. In order to experience the latest features, please install the latest Java extension pack.
The latest Java extension package:
Maven project creation optimization
Currently, when creating a new Maven project in Visual Studio Code, a dialog box will always pop up in Visual Studio Code, asking the developer if they want to open the project directly. However, we understand that in some cases developers may expect different actions.
To optimize this experience, we added a new setting that allows developers to customize the behavior after creating a Maven project. Depending on the options selected by the user, Visual Studio Code will trigger different actions.
- Interactive (Interactive)-Visual Studio Code will pop up a window, open the project after the developer confirms (default behavior)
- Open (open project)-Visual Studio Code will directly open the newly created project
- Add to Workspace-Visual Studio Code will add this project to the current workspace
New Java file creation
"New File Contribution Point" is a new feature recently released in Visual Studio Code. We have adopted this feature in Java development to make the Java file creation process more intuitive and friendly.
In the "File" menu of Visual Studio Code, you will see a new option called "New File..." (note the "..." at the end). When you click it, Visual Studio Code will prompt you to select the file type to add. If you select "New Java Class" from the drop-down list, Visual Studio Code will generate basic Java class code for you, and then you can also select the type of Java file (class/interface/enumeration, etc.). The following is a quick demonstration of this feature.
New File Contribution Point：
Regarding user feedback, we would like to share some updates in several areas:
- Support for large projects-When it comes to complex project structure, we realize that VS Code still has some performance issues, and we have been working hard to find these performance bottlenecks. As we shared in the June roadmap, this is one of our focus areas in the coming months.
- Gradle support-Gradle is one of the most popular issues in the community. We are actively preparing an update on Gradle support, please stay tuned.
Kotlin – We are very happy to learn that many users are using Visual Studio Code for Kotin development. Although we have no plans to support Kotlin immediately, we already have some good choices in the community (such as the Code Runner plugin and the Kotlin language plugin). You can view more plugins related to Kotlin through this link.
Roadmap for June:
Code Runner plugin:
Kotlin language plug-in:
Feedback and suggestions
Please actively use our products! Your feedback and suggestions are very important to us and will help us do better. There are several ways to leave us feedback
- Fill out the Chinese questionnaire
- Leave a comment under this post
- Create Issue on our GitHub repo
The following links and resources can help you better understand Java on Visual Studio Code related information
- More Java on Visual Studio Code:
- Java tutorials about Visual Studio Code:
Scan the QR code to follow Microsoft MSDN to get more first-hand technical information and official learning materials from Microsoft!