Caret not moving to the end of new line on enter, affects .razor files



Hi, this started occuring today. Rider version is 2024.3.5.

When I click Enter inside razor's @code directive, the caret doesn't move at all. As shown below on gif - I clicked enter several 
times, the caret stayed at the same position until I moved it via mouse.
 


On the other hand everything works correctly in the html section of .razor files. I inserted some html elements and the caret moved correctly. 
 

0
2 comments

It looks like you are pressing Ctrl + Enter to split a new line after the cursor. 

Please try to disable all downloaded plugins and ensure your keyboard is working properly. 

A trick is to enable Presentation Assistant in settings, thus you will figure out if you are using the Split Action or just enter to the next line.

0

Hi, sorry for the late reply. I checked and I wasn't clicking ctrl+enter. The bug dissapeared after PC restart so it was really either my keyboard or the IDE had a micro-meltdown. Thanks for the help though, I'll save that tip for the future.  

1

Please sign in to leave a comment.