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.
GitHub Codespaces:
https://github.com/features/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.
Spring PetClinic:
https://github.com/spring-projects/spring-petclinic
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:
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
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:
https://code.visualstudio.com/updates/v1_59#_contribution-point-for-new-file-menu
Community feedback
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:
https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-june-2021/
Code Runner plugin:
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
Kotlin language plug-in:
https://marketplace.visualstudio.com/items?itemName=mathiasfrohlich.Kotlin
This link:
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
https://www.research.net/r/vscodejava?lang=zh
- Leave a comment under this post
- Create Issue on our GitHub repo
Reference Materials
The following links and resources can help you better understand Java on Visual Studio Code related information
- More Java on Visual Studio Code:
https://code.visualstudio.com/docs/languages/java
- Java tutorials about Visual Studio Code:
https://code.visualstudio.com/docs/java/java-tutoria
Scan the QR code to follow Microsoft MSDN to get more first-hand technical information and official learning materials from Microsoft!
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。