0

I am following an article about live templates and noticed:

annotated("annotation qname")   

Creates a symbol of type with an annotation that resides at the specified location.

How do I specify location? I would like it to find occurences within file only but it searches outside too.

1 Answer 1

1

You don't. The function always searches for annotated methods in the entire project.

The only way to change this would be to copy the source code of the macro into your own plugin and to modify its logic as you see fit.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.