Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Documentation Tip: Search Structurally @Provides #521

@jmfayard

Description

@jmfayard

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 (or Edit > Find > Search Structurally)

Enter the following template

class $Class$ {
  @Provides( )
  $MethodType$ $MethodName$($ParameterType$ $ParameterName$);
}

In Edit variables, edit $MethodName$ like this
image

Also edit $ParameterName$
image

Now when you serach Search Structurally, you get

image

Save it as template named Dagger @Provides so you can use it next time from (Copy from existing template)

Hope that helps!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions