In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "what are the new features of VS Code Java11". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Java Runtime Environment configuration Wizard
The Java Runtime configuration Wizard is part of Java Extension Pack. Make sure that you have installed this expansion pack. Incidentally, we strongly recommend that you install the Java expansion pack or Coding Pack for Java development on VS Code. For more information, please refer to
Https://code.visualstudio.com/docs/java/java-tutorial#_setting-up-vs-code-for-java-development .
Load the project into Workspace
Click the menu: Files-> Open Folder... Or Files-> Open Workspace... To load the project into Workspace. When you see a thumbs-up icon on the status bar, your project is loaded.
Open the wizard
Ctrl + Shift + P start the command panel, and then use the command "Java:Configure Java Runtime" to start the wizard
Configure Project JDK
The Project JDKs tab on the wizard configures JDK for the project. When your project uses Maven or Gradle, WorkSpace Overview lists the language version of the build tool settings. Maven / Gradle Projects lists all qualified JDK installed in the environment by language version, where you can specify JDK for the project.
Configure JDK to run VS Code for Java
The Java Tooling Runtime tag allows you to specify the runtime environment to run VS Code's Java language tools (also known as Java Language Server). According to the requirements of the language server, this tab lists only Java 11 or later JDK installed in your environment. Remember, reload VS Code for the changes to take effect.
Install JDK
The Installed JDKs tab lists all the JDK that the wizard found in your environment.
To make it easier to install a new JDK when needed, Install A JDK provides several options.
Other improvements automatically infer the selection range from the cursor position
Language Support for Java (TM) by Red Hat can now infer the range of selections from the cursor position. When refactoring, VS Code automatically extracts and proposes expressions.
Support for exporting JAR through custom tasks
The Java Project Manager now supports exporting JAR through custom tasks, which gives you fine-grained control over how to export JAR for your project.
You can configure custom tasks by clicking the menu: Terminal- > Configure Tasks... And then select the export JAR task for your project You can run custom tasks from the following menu: Terminal- > Run Task... , select Java, and then select Export JAR task.
This is the end of "what are the new features of VS Code Java11"? thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 295
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.