Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 easier VA snippets

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
rberton Posted - Jan 03 2008 : 5:30:27 PM
I am currently evaluating VAX for possible usage and I have specifically sought it out for the AutoText (VA Snippet) feature.

My question/suggestion is:

Given this:

if<space>


Which expands to:

if (<cursor>)
{
     ;
}


What I want to be able to do, is enter the expression where the <cursor> is and hit Enter or Tab and go to the semi-colon.

This does not appear possible with the current version ( 10.4), unless I am missing something. What happens is this:

if ( expression
)
{
    ;
}


or:

if ( expression    )
{
    ;
}


Then I have to delete chars or move the cursor to the right spot. Doesn't save any time.

Is there a way to accomplish what I want in the existing version?

Thanks,

riley
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 04 2008 : 3:40:13 PM
You could enter the expression first, then select it and trigger the VA Snippet:

if ( $selected$ )
{
    $end$;
}

Which will wrap the selected code in the "if" condition.
rberton Posted - Jan 04 2008 : 10:58:00 AM
Ideally, no window pops up. Twould be better if VAX could complete user defined variables in place instead of popping up a window. Then we could create arbitrarily complex snippets and have the cursor jump to the correct place.

The TAB key would complete a variable and move to the next one eventually stopping at $end$.

riley
rhummer Posted - Jan 04 2008 : 10:52:36 AM
That's currently the only option you have. Other than you could type the expression in the IDE first, with full Intellisence support, cut that text, then paste it as the expression parameter.

I can't recall if it has been requested to have Intellisence in the VA Snippets window or not, I'll let feline answer that. :)
rberton Posted - Jan 03 2008 : 11:04:16 PM
Yes, that does technically work but it is less than ideal. That merely pops up a dialog to complete $expression$. The dialog does not benefit from any of the IntelliAssist, or VA Snippet completions so you are left to type it all out.

It would be easier if either, the popup dialog allowed IntelliAssist/Snippets or if there was no dialog and you could add the $expression$ portion directly in the code editor.

riley
rhummer Posted - Jan 03 2008 : 6:05:05 PM
You could add another VA Snippet for the 'if' statement, or which ever statement you desire, that requires an expression, and places the cursor where you choose. Like so:

if ( $expression$ )
{
     $end$
}

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