T O P I C R E V I E W |
rowkajjh |
Posted - Sep 04 2006 : 02:43:44 AM Hello,
I have often code like that:
doit1(); doit2(); doit3();
Then I want to enclose that code with an if-condition. So I type above the doit1(); if(..) I get this:
if(..) { } doit1(); doit2(); doit3();
But I want this: if(..) { doit1(); doit2(); doit3(); }
Is there an solution for that?
|
2 L A T E S T R E P L I E S (Newest First) |
rhummer |
Posted - Sep 04 2006 : 11:39:07 AM You can also select the text and hit '{'. Assuming you have the option "Surround select on / * ( { and #" turned on. To get the same effect. |
support |
Posted - Sep 04 2006 : 10:15:40 AM Select the three lines and Shift+Right Click over the selection. Navigate to Insert Autotext: if(){...}
Check out the documentation for Autotext and in particular for $selected$. Scan the default entries for some ideas.
Pay careful attention to the fact an entry with $selected$ can be used with and without a selection. (The latter is invoked via shortcut and $selected$ is expanded to nothing.)
http://www.wholetomato.com/products/features/autotext.html?more=yes |