Yeah, wouldn't it be nice if you pressed ENTER in that situation (you're
inside a bracket) that it would just complete the line for you, adding the
semicolon, and putting the cursor on the next line for you?

Alas, that wouldn't work in the other sceneros (inside a paren), because
it's possible you'd want to actually have a carriage return inside.  Maybe
shift-ENTER?

Eh, either way, the editor is making sure the braces are balanced, which is
good.  Still, it'd be nice if there were a "get me to the next place I need
to type" key that was accessible easily from home-row, without having to
press a dozen keys at once.    Maybe ctrl-;?  Or maybe just knowing that a
";" makes no sense in the context of being inside brackets or parents, it
could move to the end of the line automatically and put the ";" in?

Just thinking out-loud.  I'm sure there's some cool, usable solution here
that would really be useful.


"Michael Kirby" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I just figured out that if I hit an end-brace, it skips over the brace
that IDEA put in without
> adding another.  Which of course begs the question, why would we put in
the brace in the
> first place, if I'm going to have to type it in anyway.
>
> But I can live with it.
>
> Mike
>
>
> On 2 Jun 2002 at 10:55, Michael Kirby wrote:
>
> > When I am typing something, and IDEA adds both the beginning and
> > ending braces (for example, type the following):
> >
> > int[] foo = new int[20];
> >
> > Right at the point I am typing the [ when newing up the int[], IDEA
> > puts in an ending brace.  But after I type in the 20, I want to hit
> > semicolon to end the statement.  I can't find an easy way to skip over
> > the brace, except by hiting right arrow, which forces my hands off the
> > keyboard.
> >
> > If its going to be smart about putting in the end brace, can it be
> > smart about knowing I want to end the statement?  I would only do this
> > on the initial creation of the line.  For example, if I move the
> > cursor off of the line, and then back into the position between the 20
> > and the end], I would expect it would not terminate the line, but
> > dutifully type in:
> >
> > int[] foo = new int[20;]
> >
> > Mike
> > ---
> > [EMAIL PROTECTED]
> > To obtain my PGP public key, mail "SEND PUB KEY" in the
> > subject to "[EMAIL PROTECTED]"
> >
> > _______________________________________________
> > Eap-bugs mailing list
> > [EMAIL PROTECTED]
> > http://lists.jetbrains.com/mailman/listinfo/eap-bugs
> >
>
> ---
> [EMAIL PROTECTED]
> To obtain my PGP public key, mail "SEND PUB KEY" in the
> subject to "[EMAIL PROTECTED]"
>


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to