Open jmfayard opened 8 years ago
This is amazing!
We actually have an IntelliJ plugin which is supposed to provide this functionality as well: https://github.com/square/dagger-intellij-plugin. Sadly it's fallen a bit out of favor with regard to upkeep, but we have plans to revive it and restore it to its former glory.
Hello, thanks for dagger, which is great.
A co-worker of mine who was unfamiliar with it was confused all the time from where those
@Inject
fields come from.To make his life easier, here is a structural search pattern that people can use, it's quite useful
Action
Search Structurally
(orEdit > Find > Search Structurally
)Enter the following template
In
Edit variables
, edit$MethodName$
like thisAlso edit
$ParameterName$
Now when you serach
Search Structurally
, you getSave it as template named
Dagger @Provides
so you can use it next time from (Copy from existing template
)Hope that helps!