Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 statements and if-conditions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rowkajjh
Junior Member

17 Posts

Posted - Sep 04 2006 :  02:43:44 AM  Show Profile  Reply with Quote
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?

Edited by - rowkajjh on Sep 04 2006 02:44:21 AM

support
Whole Tomato Software

5566 Posts

Posted - Sep 04 2006 :  10:15:40 AM  Show Profile  Reply with Quote
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
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 04 2006 :  11:39:07 AM  Show Profile  Reply with Quote
You can also select the text and hit '{'. Assuming you have the option "Surround select on / * ( { and #" turned on. To get the same effect.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000