diff --git a/.gitbook/assets/find-usages-expanded.png b/.gitbook/assets/find-usages-expanded.png new file mode 100644 index 00000000..44cedd77 Binary files /dev/null and b/.gitbook/assets/find-usages-expanded.png differ diff --git a/.gitbook/assets/find-usages-link.png b/.gitbook/assets/find-usages-link.png new file mode 100644 index 00000000..3781041c Binary files /dev/null and b/.gitbook/assets/find-usages-link.png differ diff --git a/.gitbook/assets/tiny-find-usages (1).gif b/.gitbook/assets/tiny-find-usages (1).gif new file mode 100644 index 00000000..b2abfa9e Binary files /dev/null and b/.gitbook/assets/tiny-find-usages (1).gif differ diff --git a/.gitbook/assets/tiny-find-usages.gif b/.gitbook/assets/tiny-find-usages.gif new file mode 100644 index 00000000..b2abfa9e Binary files /dev/null and b/.gitbook/assets/tiny-find-usages.gif differ diff --git a/user-documentation/moderne-ide-integration/moderne-plugin-for-jetbrains-ides/creating-recipes.md b/user-documentation/moderne-ide-integration/moderne-plugin-for-jetbrains-ides/creating-recipes.md index e1605b34..82a474db 100644 --- a/user-documentation/moderne-ide-integration/moderne-plugin-for-jetbrains-ides/creating-recipes.md +++ b/user-documentation/moderne-ide-integration/moderne-plugin-for-jetbrains-ides/creating-recipes.md @@ -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 -![Find Usages on All Repos example](/.gitbook/assets/find-usages-create.gif) +

Find Usages example

-![Refactor menu example](/.gitbook/assets/refactor-create.gif) +* 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). + +![Refactor menu example](../../../.gitbook/assets/refactor-create.gif) ## 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. -![Refaster recipe example](/.gitbook/assets/refaster-recipe-example.png) +![Refaster recipe example](../../../.gitbook/assets/refaster-recipe-example.png) -![Visitor recipe example](/.gitbook/assets/visitor-recipe-example.png) +![Visitor recipe example](../../../.gitbook/assets/visitor-recipe-example.png) For more information on recipe development, check out the [OpenRewrite authoring recipes docs](https://docs.openrewrite.org/authoring-recipes).