Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 statements and if-conditions

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000