Something like this has been reported before, in a different context, but...
When I use sourround with "{}" template, it does not respect my
formatting rule
to place opening brace on the same line as if statements, etc.
Admittedly, it would have to look at the code that comes before the
selection,
but since that template would most often (for me) be used in the context
of an
"if", that would seem to be important to this functionality.
Mike Aizatsky wrote:
> Thomas,
>
> You can try Ctrl+Alt+J in java code. Than you may also find the example
> templates in "surround" group. As the last resort you may try defining
> the template with $SELECTION$ variable :).
>
> Best regards,
> Mike Aizatsky.
> ------------------------------
> JetBrains, Inc / IntelliJ Software
> http://www.intellij.com
> "Develop with pleasure!"
>
>
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>
> On
>
>>Behalf Of Thomas Singer
>>Sent: Friday, April 19, 2002 8:11 PM
>>To: [EMAIL PROTECTED]
>>Subject: [Eap-list] Live Templates with selection
>>
>>
>>
>>>> - Live Templates. Added possibility to pass the contents of the
>>>
>>selection
>>
>>Hmm, maybe this is a dumb question, but could you please give an
>
> example.
>
>>Tom
>>
>>
>>_______________________________________________
>>Eap-list mailing list
>>[EMAIL PROTECTED]
>>http://www.intellij.com/mailman/listinfo/eap-list
>
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
>
--
Erb
==============================================================
"The only time I like in the morning is afternoon."
- Russell D. Cooper
"If you do everything, then you're all done."
- Melissa F. Cooper
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list