Skip to content

microsoft/vscode-lombok

Repository files navigation

Lombok logo vscode-lombok

VS Marketplace Installs

⚠️Starting from 1.8.0, the Language Support for Java(TM) by RedHat extension has built-in support for Lombok and automatically uses the lombok.jar from your project classpath. The embedded lombok.jar in the vscode-lombok extension will be deprecated in favor of RedHat Java extension.

Overview

https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-lombok

A lightweight extension based on Language Support for Java by Red Hat. Provide refactoring code actions to Lombok/Delombok annotations in your code.

  • Lombok - Refactor code with Lombok annotations.
  • Delombok - Remove annotations with actual methods.

Screenshot

Requirements

  • VS Code (version 1.65.0 or later)
  • Lombok added as a dependency in your Java Project (Make sure you're using the latest version to avoid issues!) Add with Maven or Add with Gradle

Install

Open VS Code and press Ctrl + Shift + X to open extension manager. Type lombok and click install. Reload VS Code when asked.

Features / Supports

Here are the supported annotations for lombok/delombok code actions.

Data/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.

Credits

This project was originally started by @GabrielBB and is now currently maintained by Microsoft. Huge thanks to @GabrielBB who started it all and made this Lombok extension available.

I'm having issues