Skip to content

Recipes & Code Lenses

Recipes and Code Lenses are available in VS Code and JetBrains IDEs.

Recipes are quick commands that you can use to have Sourcery take action based on a specific section of code. Code Lenses are the recipe commands you'll see above a section of code (typically a top level function or class). Clicking a Code Lens triggers that recipe for that section of code.

Triggering a Recipe through a Code Lens

Current Recipes

There are currently 5 recipes built into Sourcery

Disabling Code Lenses

You can turn off code Lenses so they do not appear in your code.

Go to the Sourcery extensions settings in your IDE and deselect the Code Lenses checkbox.