Manage Java projects in Visual Studio Code.
Перейти к файлу
Sheng Chen f2368711a5
build: Prepare for 0.23.3 (#803)
Signed-off-by: Sheng Chen <sheche@microsoft.com>
2023-11-30 14:05:05 +08:00
.github/workflows Update the CI node version (#710) 2023-01-30 11:25:14 +08:00
.vscode Fixes java.getPackageData for modules with long name (#791) 2023-10-08 09:40:48 +08:00
icons chore: Reduce package size (#522) 2021-06-28 15:23:42 +08:00
images chore: Reduce package size (#522) 2021-06-28 15:23:42 +08:00
jdtls.ext build: Prepare for 0.23.3 (#803) 2023-11-30 14:05:05 +08:00
scripts prepare for pre-release channel (#603) 2022-03-24 19:04:51 +08:00
src feat: Register the project delete event (#802) 2023-11-29 19:19:15 +08:00
templates/invisible-project fix: Add default setting for referenced libraries (#584) 2022-01-19 04:20:00 -08:00
test feat: Improve the user experience of new Java file. (#801) 2023-11-29 16:57:08 +08:00
.gitignore chore: Clean up the metadata files (#622) 2022-06-06 22:36:38 -07:00
.vscodeignore chore: Remove gulp dependencies (#557) 2021-09-27 14:23:02 +08:00
CHANGELOG.md build: Prepare for 0.23.3 (#803) 2023-11-30 14:05:05 +08:00
LICENSE
README.md fix: Improve wording. (#785) 2023-08-25 10:27:53 +08:00
SECURITY.md chore: Add Microsoft SECURITY.MD (#616) 2022-05-23 18:26:14 -07:00
ThirdPartyNotices.txt feat: Improve the user experience of new Java file. (#801) 2023-11-29 16:57:08 +08:00
extension.bundle.ts feat: Show non Java Projects in the Java Projects explorer (#744) 2023-04-12 16:03:25 +08:00
javaConfig.json chore: Bump version (#719) 2023-03-02 16:44:09 +08:00
logo.png chore: Update logo to 256*256 (#466) 2021-03-03 10:18:04 +08:00
main.js test: Add explorer test cases with different projects (#386) 2020-11-23 09:55:31 +08:00
package-lock.json build: Prepare for 0.23.3 (#803) 2023-11-30 14:05:05 +08:00
package.json build: Prepare for 0.23.3 (#803) 2023-11-30 14:05:05 +08:00
package.nls.json feat: Improve the user experience of new Java file. (#801) 2023-11-29 16:57:08 +08:00
package.nls.zh-cn.json feat: Improve the user experience of new Java file. (#801) 2023-11-29 16:57:08 +08:00
package.nls.zh-tw.json feat: Improve the user experience of new Java file. (#801) 2023-11-29 16:57:08 +08:00
tsconfig.json chore: Bump dependency versions (#693) 2022-10-12 14:16:27 +08:00
tslint.json feat: Add test metadata to the nodes (#437) 2021-01-08 11:24:16 +08:00
webpack.config.js Fixes java.getPackageData for modules with long name (#791) 2023-10-08 09:40:48 +08:00

README.md

Project Manager for Java

Manage Java projects in Visual Studio Code

GitHub Actions GitHub Actions GitHub Actions

Overview

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

project-view

Create Java Projects

create project

Export Jar

Note: For Spring Boot projects, please use the build tool to build the executable jar, for example: mvn package.

export jar

Manage Dependencies

You can work with JAR files directly without any build tools. Go to JAVA PROJECTS view, find the Referenced Libraries node and click the + icon:

Reference JAR Files

If you want to fine-tune this, go to settings.json and look for the java.project.referencedLibraries entry.

"java.project.referencedLibraries": [
    "library/**/*.jar",
    "/home/username/lib/foo.jar"
]

You can tell that the glob pattern is supported. And here's more - you can include/exclude certain files, and attach source JARs:

"java.project.referencedLibraries": {
    "include": [
        "library/**/*.jar",
        "/home/username/lib/foo.jar"
    ],
    "exclude": [
        "library/sources/**"
    ],
    "sources": {
        "library/bar.jar": "library/sources/bar-src.jar"
    }
}

Requirements

Settings

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 link Java Projects Explorer with the active editor. 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 , a file explorer will pop up to let the user select the output location. ${workspaceFolder}/${workspaceFolderBasename}.jar
java.project.explorer.showNonJavaResources When enabled, the explorer shows non-Java resources. true

Contribution

Build

  • Prerequirement

    • Node.js
    • Java SDK 11 or above
  • Go to root folder:

npm install
npm run build-server

Telemetry

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.