michael.damberger wrote:
>
> and sth. like ctr-delete could delete the brace where the caret
> is on, and the matching closing/opening brace, too.
> this would be the opposite of "surround with {}"
something like "remove outer scope". I'd love something like
that in general, even to remove stand-alone if statements,
while statements, try/catch, do/until. OK, most of those
aren't the opposite of "surround with {}", but I think
they'd be nice.
When I say remove stand-alone if statements I mean, it's
easy to work out how to remove scope here:
if (true) {
a += 2;
}
--->
a += 2;
but not here:
if (true) {
a += 2;
} else {
a -= 2;
}
---> ?
Please please don't use ctrl-del for anything. Jumping
between different machines with fat fingers will cause
far too many ctrl-alt-del accidents (a minor irritation
to some, a concentration breaker to me.)
oh, and to drag in another email:
michael.damberger wrote:
> Then let's make it smart enough to detect array assignments ;-)
> >It's not unambiguous:
> >
> >String[] stringArray = { "string1", "string2" };
> >
> >I would not want that to jump to the next line an display something like:
> >
> >String[] stringArray =
> >{
> > "string1", "string2"
> >};
Agreed, halfway. There's also the task of it detecting one-line
getters and setters, which of course it can't detect until you've
finished writing it. What would you have it do, move lines
about while you're typing?
from:
public int getNumber() { ret
(so far so good, could be typing 'return')
to:
public int getNumber() {
retr
(not typing 'return', obviously can't be a one-line getter.)
Failed to type 'u', delete and correct:
public int getNumber() { retu
Thinking about it, quite simply, people who can't handle the
code jumping about will either not enable the feature, or will disable it
completely.
If you don't mind a rapidly changing editor display, there's something (good)
to be said for being able to type:
public int getNumber(){contrivedMethod();return 2+2+getThing(a,b);}
and see it appear as:
public int getNumber() {
contrivedMethod();
return 2 + 2 + getThing(a, b);
}
Cheers,
ash
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features