-
Notifications
You must be signed in to change notification settings - Fork 504
Lombok support
Fred Bricon edited this page Mar 11, 2018
·
6 revisions
In order to Lombok support, you need to edit the java.jdt.ls.vmargs setting in VS Code preferences:
{
"java.jdt.ls.vmargs": "-javaagent:/path/to/lombok.jar -Xbootclasspath/a:/path/to/lombok.jar"
}Paths containing spaces should be surrounded by (escaped) double quotes:
{
"java.jdt.ls.vmargs": "-javaagent:\"/spaced path/to/lombok.jar\" -Xbootclasspath/a:\"/spaced path/to/lombok.jar\""
}The a: prefix in the Xbootclasspath flag is critical, make sure it's added.
Alternatively, there's a simpler method of enabling lombok support, via the Lombok Annotations Support for VS Code extension.