Reformatting code moves cursor to the first line


When I hit Ctrl + Alt + L to reformat code, the code is reformatted, but my cursor (caret) is moved to the first line of the file. This is very annoying because I always have to scroll to where my cursor was before. How can I turn this off?

Thank you


Hello Martin, Thank you for contacting us.

Could you please tell me:

- what version of Rider do you use?

- what is your OS?

- what is the type of the project?

Could you share Rider Logs after reproducing the problem (Help | Compress Logs and Show in ...)? You can attach this data in a new ticket on, or you can create a support request via pressing a [Submit Request] button on the top of this page. Thank you in advance!

Thank you! We reproduced it and going to fix it soon.

Please sign in to leave a comment.