AutoMapper.FindUsage is a plugin for JetBrains Rider and ReSharper that provides seamless navigation between DTOs and Models based on your AutoMapper configurations.
- Quick Navigation: Jump from a property in your destination class directly to its source in the original model.
- Fluent API Support: Automatically recognizes mappings configured via
CreateMap<TSource, TDest>(). - Reverse Mapping: Full support for
.ReverseMap(), allowing you to navigate in both directions. - Clean UI: Context actions appear only on
setorinitaccessors to minimize visual noise in yourAlt+Entermenu. - Smart Grouping: If a property is mapped from/to multiple types, the plugin groups them and uses full type names for easy identification.
- Open a C# file containing a class used in AutoMapper mappings.
- Place the caret on the
setorinitaccessor of a property. - Press
Alt + Enterto open Context Actions. - Select AutoMapper. Navigate to source: . to jump to the corresponding member.
The plugin analyzes your codebase to find various mapping patterns:
// Standard mapping
CreateMap<User, UserDto>();
// Reverse mapping support
CreateMap<Order, OrderDto>().ReverseMap();You can install the plugin directly from the JetBrains Marketplace.
To test the plugin in a sandbox environment:
-
Build the .NET part:
.\gradlew.bat compileDotNet -
Launch Rider with the plugin:
.\gradlew.bat runIdeThis will start an experimental instance of Rider with the plugin installed.
-
Verify functionality: Open any solution with AutoMapper configurations and test the
Alt+Entermenu on property setters.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Created by Sergey Rogatnev.
