Converting foreach loops to for loops for entire solution

I want to change my foreach loops to for loop for the entire solution because of performance reasons. Can I do this with default refactoring ways of Rider? Or should I write a custom plugin?

I know I can change foreach loops to for loops with quick actions. But I have so many foreach loops and I don't want to do that for every loop.

1 comment
Comment actions Permalink

Hi Yigitq,


foreach->for action is only available as quick action and cannot be applied solution-wide. If you want to write a custom plugin for yourself, please use this page as a starting point.


Please sign in to leave a comment.