Frustrating closing brace insertion behavior

ReSharper seems to go a little crazy when there's an open parenthesis. I have been running into this problem a lot lately as I start to write an expression and need to move somewhere else in the code.

For example, take the following code. The cursor is right after the opening brace where I put the circle.

shot3.png

Say I want to go add that function Call. What happens is this:

shot4.png

It's a strange response. Why does this happen? Does the parser think that whatever is in the expression is part of a lambda? Whatever it's doing, I am running into this problem very often. So much that I've decided to disable the auto brace insertion.

I've used other addins like VisualAssist and CodeRush and have not had this issue, seems specific to ReSharper.

1 comment
Comment actions Permalink

Hello Scott,

This is certainly a bug, so I've logged it here: http://youtrack.jetbrains.net/issue/RSRP-184011
and we will do our best to fix it. Thank you for reporting!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

ReSharper seems to go a little crazy when there's an open parenthesis.
I have been running into this problem a lot lately as I start to write
an expression and need to move somewhere else in the code.

For example, take the following code. The cursor is right after the
opening brace where I put the circle.

Image:shot3.png

Say I want to go add that function Call. What happens is this:

Image:shot4.png

It's a strange response. Why does this happen? Does the parser think
that whatever is in the expression is part of a lambda? Whatever it's
doing, I am running into this problem very often. So much that I've
decided to disable the auto brace insertion.

I've used other addins like VisualAssist and CodeRush and have not had
this issue, seems specific to ReSharper.

---
Original message URL:
http://devnet.jetbrains.net/message/5266402#5266402



0

Please sign in to leave a comment.