This is EXACTLY the reason I wish the { [Enter] would "format as you type"
rather than trying to be a built-in "live template".
I want to type "if(x){foo(y);}" as one string of text, and have it come out
as:
if (x)
{
foo(y);
}
(or however else you have the brace settings configured).
I want it to "code-layout as I type", not try and second guess by adding
characters I haven't typed yet (like the closing brace) unless I tell it to
(by invoking a live-template). I feel this would be the MOST useful, I
think (especially if it were an option that could be turned off for people
who are annoyed by their code shifting around as they type).
-----Original Message-----
Message: 7
Date: Tue, 12 Feb 2002 10:25:44 -0800 (PST)
From: Alex Robinson <[EMAIL PROTECTED]>
Subject: Re: [Eap-list] Please restore the { live template
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
I actually preferred using tab instead of the enter
key for the { live template.
I frequently manually surround a block of code with
control or looping statements. If I hit enter after
the {, which is something I often do especially if I
have several nested control or looping statements to
add, I end up with the matching } before the code
block I am trying to surround. Then it becomes more
work to move the misplaced } to the end of the block
of code I am trying to surround. I know I could learn
to not hit enter when surrounding code blocks, but
does that mean I have to use the arrow key or mouse to
get to the next line? I am not sure that is the best
solution especially if I am adding nested statements.
Can we have the options to use TAB instead of ENTER? I
did not see any option for disabling the { live
template that uses the Enter key.
Alex
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list