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?

0
5 comments

Should have added: I'm running 2022.2.4, language is C#.

0

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!

0

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).

0

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.

0

Hello Trepan,

It sounds weird. Would you mind sharing additional information as described below?

  • What kind of project are you working on?
  • Is the issue reproducible in a newly created C# project?
  • A couple of full-screen ide screenshots that demonstrate the issue. One for a file where brace completion works and another one with file where brace completion doesn't work. (Please keep the solution explorer open)

Thank you in advance and have a nice day!

0

Please sign in to leave a comment.