Auto-insert closing brace has stopped working!
I've been using this as part of my Rider configuration for years with no issue, but for some reason it suddenly no longer works!
I checked the settings under Typing Assistance and ‘Auto-insert closing brace’ is set to ‘On typing an opening brace’. I've tried changing and saving this setting. Whatever I try, I'm not seeing Rider do anything when I type a brace (or after hitting Return). This is true whatever code context I'm trying to use (conditional, loop, function, etc).
I do see the cursor still tab in for the new line - it's just the brace insertion that fails.
Any ideas?
Please sign in to leave a comment.
Should have added: I'm running 2022.2.4, language is C#.
Hello Trepan,
Thank you for contacting Rider support.
Would you mind ensuring that the File | Settings | Editor | General | Typing Assistance | Braces and Parentheses | Auto-insert pair brackets, parentheses and quotes option is enabled?
Have a nice day!
Hi Dmitry, thanks for your reply. Yes, I have that set. All of these options are ticked (although I don't see ‘Join concatenated string’ in my version of Rider).
Oh… This gets weirder. I just noticed that brace insertion *is* working in some of my source files, but not in others! I can literally switch between two open files and see it work or fail.
Hello Trepan,
It sounds weird. Would you mind sharing additional information as described below?
Thank you in advance and have a nice day!