mirror of
https://github.com/jlengrand/moderne-docs.git
synced 2026-03-10 08:31:21 +00:00
GITBOOK-530: change request with no subject merged in GitBook
This commit is contained in:
committed by
gitbook-bot
parent
ab4d55566b
commit
f848ff5d32
BIN
.gitbook/assets/find-usages-expanded.png
Normal file
BIN
.gitbook/assets/find-usages-expanded.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
.gitbook/assets/find-usages-link.png
Normal file
BIN
.gitbook/assets/find-usages-link.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
BIN
.gitbook/assets/tiny-find-usages (1).gif
Normal file
BIN
.gitbook/assets/tiny-find-usages (1).gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 667 KiB |
BIN
.gitbook/assets/tiny-find-usages.gif
Normal file
BIN
.gitbook/assets/tiny-find-usages.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 667 KiB |
@@ -10,21 +10,22 @@ In this short guide, we'll walk through everything you need to know to get start
|
||||
|
||||
To begin, find some API that you're interested in searching for. Then right-click on one of its usages and either:
|
||||
|
||||
* Click on `Find Usages on All Repos` and then click on `Create Recipe` (selecting the [type of recipe that you want to create](#types-of-recipes-you-can-create)) OR
|
||||
* Click on `Refactor`, select `Create OpenRewrite Recipe...`, and then click on `Create Recipe` (selecting the [type of recipe you want to create](#types-of-recipes-you-can-create)). Please note that IntelliJ IDEA offers a keyboard shortcut for the `Create OpenRewrite Recipe...` menu (it defaults to alt + command + 9 on a Mac).
|
||||
* Click on `Find Usages on All Repos` and then click on `Create Recipe` (selecting the [type of recipe that you want to create](creating-recipes.md#types-of-recipes-you-can-create)) OR
|
||||
|
||||

|
||||
<figure><img src="../../../.gitbook/assets/tiny-find-usages (1).gif" alt=""><figcaption><p>Find Usages example</p></figcaption></figure>
|
||||
|
||||

|
||||
* Click on `Refactor`, select `Create OpenRewrite Recipe...`, and then click on `Create Recipe` (selecting the [type of recipe you want to create](creating-recipes.md#types-of-recipes-you-can-create)). Please note that IntelliJ IDEA offers a keyboard shortcut for the `Create OpenRewrite Recipe...` menu (it defaults to alt + command + 9 on a Mac).
|
||||
|
||||

|
||||
|
||||
## Types of recipes you can create
|
||||
|
||||
The Moderne plugin allows you to create two types of recipes: [Refaster recipe](https://docs.openrewrite.org/authoring-recipes/refaster-recipes) and [Imperative visitor-based recipes](https://docs.openrewrite.org/authoring-recipes/types-of-recipes#imperative-recipes).
|
||||
The Moderne plugin allows you to create two types of recipes: [Refaster recipes](https://docs.openrewrite.org/authoring-recipes/refaster-recipes) and [Imperative visitor-based recipes](https://docs.openrewrite.org/authoring-recipes/types-of-recipes#imperative-recipes).
|
||||
|
||||
Refaster recipes are better if you're doing a straightforward replacement (such as converting `StringUtils.equals(..)` to `Objects.equals(..)`). For everything else, you should create an Imperative recipe.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
For more information on recipe development, check out the [OpenRewrite authoring recipes docs](https://docs.openrewrite.org/authoring-recipes).
|
||||
|
||||
Reference in New Issue
Block a user