Manage Java projects in Visual Studio Code
A lightweight extension to provide additional Java project explorer features. It works with Language Support for Java by Red Hat to provide the following features:
- Project View
- Create Java Projects
- Export Jar
Note: For Spring Boot projects, please use the build tool to build the executable jar, for example:
mvn package
.
- JDK (version 11 or later)
- VS Code (version 1.44.0 or later)
- Language Support for Java by Red Hat (version 0.32.0 or later)
Setting Name | Description | Default Value |
---|---|---|
java.dependency.showMembers |
Specify whether to show the members in the Java Projects explorer. | false |
java.dependency.syncWithFolderExplorer |
Specify whether to sync the folder with Java Projects explorer when browsing files. | true |
java.dependency.autoRefresh |
Specify whether to automatically sync the change from editor to the Java Projects explorer. | true |
java.dependency.refreshDelay |
The delay time (ms) the auto refresh is invoked when changes are detected. | 2000ms |
java.dependency.packagePresentation |
Specify how to display the package. Supported values are: flat , hierarchical . |
flat |
java.project.exportJar.targetPath |
The output path of export jar. When this setting is empty or equals askUser , a file explorer will pop up to let the user select the output location. |
${workspaceFolder}/${workspaceFolderBasename}.jar |
-
Prerequirement
- Node.js
- Java SDK 11 or above
-
Go to root folder:
npm install -g gulp
npm install
gulp build_server
VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don't wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry
setting to false
. Learn more in our FAQ.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.