Manage Java projects in Visual Studio Code.
Перейти к файлу
Sheng Chen 21f2f1233b
build: Prepare for 0.23.6 (#827)
2024-03-25 13:40:26 +08:00
.azure-pipelines build: Update ADO pipeline definitions (#823) 2024-03-04 15:37:34 +08:00
.github/workflows fix: Permission issue of no-response bot (#822) 2024-02-29 04:08:53 -08:00
.vscode fix: Update vscode-extension-tester to 7.0.0 & minimum vscode version to 1.83.1 (#810) 2024-01-05 16:10:54 +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.6 (#827) 2024-03-25 13:40:26 +08:00
scripts prepare for pre-release channel (#603) 2022-03-24 19:04:51 +08:00
src fix: Referenced Libraries container should be immutable for build tool projects (#826) 2024-03-21 15:47:10 +08:00
templates/invisible-project fix: Add default setting for referenced libraries (#584) 2022-01-19 04:20:00 -08:00
test fix: Referenced Libraries container should be immutable for build tool projects (#826) 2024-03-21 15:47:10 +08:00
.gitignore chore: Clean up the metadata files (#622) 2022-06-06 22:36:38 -07:00
.vscodeignore build: Migrate to 1ES pipeline (#814) 2024-01-15 13:20:55 +08:00
CHANGELOG.md build: Prepare for 0.23.6 (#827) 2024-03-25 13:40:26 +08:00
LICENSE Initial commit 2018-04-11 00:30:07 -07:00
README.md fix: Update vscode-extension-tester to 7.0.0 & minimum vscode version to 1.83.1 (#810) 2024-01-05 16:10:54 +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.6 (#827) 2024-03-25 13:40:26 +08:00
package.json build: Prepare for 0.23.6 (#827) 2024-03-25 13:40:26 +08:00
package.nls.json Contribute 'New Java Project...' command to File/NewFile and File Explorer menus (#809) 2024-01-05 14:49:59 +08:00
package.nls.zh-cn.json Contribute 'New Java Project...' command to File/NewFile and File Explorer menus (#809) 2024-01-05 14:49:59 +08:00
package.nls.zh-tw.json Contribute 'New Java Project...' command to File/NewFile and File Explorer menus (#809) 2024-01-05 14:49:59 +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.