is Insert pair '}' broken?

Isn't
Insert pair '}'
supposed to work like all the other kind of parenthesis?


Even though I've enabled
Insert pair '}'
, the '}' is not inserted after I type '{'.

8 comments

The case with '}' is a special case. The matching '}' is inserted when you
hit enter. Don't remember the exact reason for that though:)
Eugene.

"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message
news:cm0eua$1lj$1@is.intellij.net...

Isn't
Insert pair '}'
supposed to work like all the other kind of parenthesis?

>
>

Even though I've enabled
Insert pair '}'
, the '}' is not inserted after I type '{'.

>


0

Evgueny

>The case with '}' is a special case. The matching '}' is inserted when you
>hit enter.
>

It doesn't work with code like
String [] s = {"un","deux" |


>Don't remember the exact reason for that though:)

>
I wonder if it was related to/motivated by implementation or usability?

Alain

0

It doesn't work with code like
String [] s = {"un","deux" |

Yeah, this is a long standing issue, that is not addressed for performance
issues.

I wonder if it was related to/motivated by implementation or usability?

By usability if I'm not mistaken.

Eugene.


0

Eugene,

I see a contradiction in your reply:

>>It doesn't work with code like
>> String [] s = {"un","deux" |
>>
>>
>Yeah, this is a long standing issue, that is not addressed for performance
>issues.
>

>
performance <--> implementation

>>I wonder if it was related to/motivated by implementation or usability?
>>
>>
>By usability if I'm not mistaken.
>

>

Alain

0

Alain, we discussed 2 separate issues, didn't we?:-)

"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message
news:cm5t4p$jne$1@is.intellij.net...

Eugene,

>

I see a contradiction in your reply:

>

>>It doesn't work with code like
>> String [] s = {"un","deux" |
>>
>>
>Yeah, this is a long standing issue, that is not addressed for

performance

>issues.
>
>
>
performance <--> implementation

>

>>I wonder if it was related to/motivated by implementation or usability?
>>
>>
>By usability if I'm not mistaken.
>
>
>

>

Alain



0

Eugen,

>Alain, we discussed 2 separate issues, didn't we?:-)
>

>

I guess I misread your reply.

Though, I can't see any usability motivation for not inserting the
closing '}', the way it works for all the other paired symbols.
The only difference is that you would have use the user-specified
formating options, to know where to place this '}'.


Alain

0

For some reason I like the way insert-"}" works. When I work on a
method declaration that already has a body, I'm glad IDEA doesn't
insist on inserting a "}" that I would have to delete right-away. Usability
makes sense to me.

cheers :)

Vince.


0

Evgueny Vigdorchik wrote:

>>It doesn't work with code like
>> String [] s = {"un","deux" |
>>
>>
>Yeah, this is a long standing issue, that is not addressed for performance
>issues.

>

I found it, patiently and silently waiting in the tracker:
"[Ctrl-Shift-Enter] fails on open arrays "
http://www.intellij.net/tracker/idea/viewSCR?publicId=22823

Alain

0

Please sign in to leave a comment.