Manage Java projects in Visual Studio Code.
Перейти к файлу
Sheng Chen 9c3b27faa3
chore: Update dependencies (#772)
Signed-off-by: Sheng Chen <sheche@microsoft.com>
2023-06-01 17:03:04 +08:00
.github/workflows Update the CI node version (#710) 2023-01-30 11:25:14 +08:00
.vscode chore: Bump version (#719) 2023-03-02 16:44:09 +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 chore: Prepare for 0.23.0 (#769) 2023-05-29 10:38:04 +08:00
scripts prepare for pre-release channel (#603) 2022-03-24 19:04:51 +08:00
src feat: Support create Graal Cloud Native projects. (#765) 2023-05-18 14:09:54 +08:00
templates/invisible-project fix: Add default setting for referenced libraries (#584) 2022-01-19 04:20:00 -08:00
test chore: Prepare for 0.22.0 (#756) 2023-04-23 10:13:51 +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 fix: Cannot open file explorer from welcome view. (#771) 2023-05-29 13:15:18 +08:00
LICENSE Initial commit 2018-04-11 00:30:07 -07:00
README.md chore: Prepare for 0.22.0 (#756) 2023-04-23 10:13:51 +08:00
SECURITY.md chore: Add Microsoft SECURITY.MD (#616) 2022-05-23 18:26:14 -07:00
ThirdPartyNotices.txt chore(deps): Update dependencies (#682) 2022-07-31 22:21:44 -07: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 chore: Update dependencies (#772) 2023-06-01 17:03:04 +08:00
package.json fix: Cannot open file explorer from welcome view. (#771) 2023-05-29 13:15:18 +08:00
package.nls.json fix: spelling mistake in package.nls.json (#760) 2023-04-27 17:35:29 -07:00
package.nls.zh-cn.json fix: Change the setting 'java.project.explorer.filters' to 'java.project.explorer.showNonJavaResources' (#755) 2023-04-21 12:57:25 +08:00
package.nls.zh-tw.json feat: Support create different kind of resources from inline new button. (#754) 2023-04-14 16:31:35 +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 chore: Prepare for 0.18.3 (#482) 2021-04-08 15:39:15 +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 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 , 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.