7 comments

Hello Denis,

What happens if you disable 'Auto-insert pair brackets, parentheses and quotes'
under ReSharper | Options | Editor? Does only one closing parenthesis get
inserted in this case? Thank you!

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

In VB.NET try to type this:

Public Sub Test()

and you will get:

Public Sub Test())

This is really annoying. I filled a YouTrack issue but there is no
progress: http://youtrack.jetbrains.net/issue/RSRP-205585

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



0

Andrey, then it works fine but I like that feature so I don't want it disabled.

0

Hello Denis,

Could you please clarify what do you mean by 'works fine'? Does a single
closing parenthesis get inserted automatically? The reason I'm asking is
because I suspect that you have some other extension installed that also
automatically adds closing parenthesis. Thank you!

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

Andrey, then it works fine but I like that feature so I don't want it
disabled.

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



0

When I disable as per your instructions no closing parenthesis is added so when I type

Public Sub Test()

I do get:

Public Sub Test()

which is correct. When I enable the R# feature back I guess what happens is that when I type:

Public Sub Test(

R# converts it to:

Public Sub Test()

but I don't recognize this change and instinctively am also adding the ")" so together with R# we get:

Public Sub Test())

Maybe a solution for this is to have R# check if it sees 2 closing parentheses and remove one of them or not allow me to type an extra closing parenthesis.

0

which build do you use? I had the same behavior in older build but the one i currently use (2146) works as expected. If i type a closing brace the one R# inserted automatically is ignored and the cursor will be positioned after the closing brace.

Regards
Klaus

0

Hello Denis,

Thank you for clarification! I have to agree with Klaus, since I cannot reproduce
this behavior with the latest build either. Which build are you using? Do
you experience the same behavior with the latest build available?

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

When I disable as per your instructions no closing parenthesis is
added so when I type

Public Sub Test()

I do get:

Public Sub Test()

which is correct. When I enable the R# feature back I guess what
happens is that when I type:

Public Sub Test(

R# converts it to:

Public Sub Test()

but I don't recognize this change and instinctively am also adding the
")" so together with R# we get:

Public Sub Test())

Maybe a solution for this is to have R# check if it sees 2 closing
parentheses and remove one of them or not allow me to type an extra
closing parenthesis.

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



0

I cannot reproduce this in the latest build also.  It was still present in 2141. I am using 2146 and I don't see it happening anymore.

0

Please sign in to leave a comment.