Find usages of lombok generated getter/setter in Intellij
Asked Answered
C

1

9

I have a field with lombok annotation (@Setter) and I am looking for an easy way to find usages of the auto generated setter.

When I put the cursor on the @Setter annotation and run Find usages (Alt+F7) I obviously get all the places where @Setter annotation is used (the result is all classes which contains lines with @Setter)

However I would like to find all places where this concrete setter, for this concrete field is used (I expect all classes which contains lines with setSomething(...) as a result)

I have Annotation Processing enabled (checkbox "Enable annotation processing" inSettings->Compiler->Annotation Processors is checked).
I also have Lombok plugin installed and it works fine.

Cressi answered 7/5, 2019 at 10:44 Comment(1)
You should put the cursor on field, not on annotation.Plumbo
P
8

You should put the cursor on field, not on @Setter annotation

Pinetum answered 7/5, 2019 at 11:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.