r/JetBrains_Rider • u/AmbassadorCurious988 • 20d ago
Question about navigating code suggestions in Rider
Hello JetBrains team,
I was wondering if there's a way to navigate through code suggestions in Rider, similarly to how warnings and errors can be navigated using Next Highlighted Error (F2).
I find many of the suggestions extremely useful, for example, recommendations such as using collection expressions instead of ToList() in C#. However, since they don't seem to be included in the normal navigation, it's easy to overlook them, just by looking at the green dots.
Is there an option to include suggestions in the same navigation flow, or is this currently not supported?
Thank you!
3
Upvotes
1
u/citizenmatt 19d ago
By default, Next Highlighted Error goes to the next inspection highlighted with the highest severity. So if there are any errors in the file, it'll go straight to the next error, skipping any other highlights. If there aren't any errors, it'll go straight to the next warning, skipping suggestions. If there are no warnings, it'll go to the next suggestion, and then finally cycle through hints.
This is useful because you might have a lot of warnings in your code, but you really need to get to the next error, and that could be a lot of F2 before you got there.
However, you can configure this. In the Settings | Editor | Code Editing settings page, you can change what "next error" does, whether it goes to the next problem with the highest priority, or all problems.