This could be done by having a new Expand With option of <nothing> in Live
Templates.  This would trigger the template as soon as a matching
abbreviation was typed, rather than checking when the [space,tab,enter] key
is pressed.  That way, the Block template, the one that does matching {},
could trigger as soon as the user types { and Hani would be happy again!

This might make the editor slower - having to check after each keypress
rather than just after [space,tab,enter] - I guess you'd have to try it and
see?

Just a thought,
Dan/tastapod


> -----Original Message-----
> From: Hani Suleiman [mailto:[EMAIL PROTECTED]]
> Sent: 26 October 2001 16:36
> To: [EMAIL PROTECTED]
> Subject: Re: [Eap-features] Editor improvements
> 
> 
> 
> 
> On Fri, 26 Oct 2001, Valentin Kipiatkov wrote:
> 
> > >    - intelligent auto-tabbing of a given line (emacs is 
> amazing at this,
> > > but JBuilder ain't bad either)
> > 
> > What do you mean? Please, clarify.
> > 
> Here are some examples:
> 
> after pressing enter, the current line (line before you hit enter) is
> automatically indented correctly in accordance with your chosen code
> layout, if it wasn't already.
> 
> If your layout is set to use newlines after various thing, it 
> happens as
> you type, without having to explicitly press enter. For 
> example, if I have
> my braces set to be on a newline, I type:
> 
> public class Foo {|
> 
> when I type the '{', this becomes
> 
> public class Foo
> {
>   |
> 
> Hani
> 
> 
> 
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
> 


***************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify [EMAIL PROTECTED] 
immediately.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.
***************************************************************************************

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to