Actually, I was just thinking about it and it would be nice if, when the
caret is inside the if statement body, I hit the closing '}' the editor
recognizes I'm done inside the if and goes ahead and takes me outside the
body of the if statement.
for instance:
if(true) {
x();<caret>
}
then I hit '}' and this results in
if(true) {
x();
}
<caret>
ready for me to type 'else'... This way the user doesn't have to use the
arrow keys to get out of the body to continue typing.
sw
> -----Original Message-----
> From: Stefan Freyr Stefansson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 10:14 AM
> To: [EMAIL PROTECTED]
> Subject: [Eap-features] Re: Improved "completion"
>
>
> +10
>
> I've never understood the point of completing the
> parenthases... the caret
> is put inside the parenthases and you have to either type ')'
> or press the
> right arrow button to complete the rest so it really doesn't
> do anything.
> I'd much rather like to see something like Sam suggested, instead of
> completing the ')', insert the brackets and put the caret
> inside them where
> the serious work is going to be done (in other words, I'm ok
> with having to
> press the arrow to get out of the body of the if statement
> but I find it
> very annoying to get out of the parenthases).
>
> Regards, Stefan.
>
>
> "Sam Wilson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > I've been working with 644 for a bit now, and one of the
> things I really
> > like is that when IntelliJ completes code for me it allows
> me to type over
> > the code completed. For instance, in the case of an if
> statement, if I
> type:
> >
> > if(
> >
> > then IntelliJ prints this out:
> >
> > if(<caret>)
> >
> > And then I fill in the test expression:
> >
> > if(x==y<caret>)
> >
> > And if the next key I hit is ")" out of habit, IntelliJ is
> IntelliJent
> > enough to "type over" the ).
> >
> > What would be really cool is if IntelliJ went one step further and
> actually
> > put the braces in according to my coding style and place
> the caret inside
> > the braces as in:
> >
> > if(x==y) {
> > <caret>
> > }
> >
> > Does this makes sense? Would anyone else find this useful?
> >
> > sw
>
>
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://lists.jetbrains.com/mailman/listinfo/eap-features
>
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features