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
 Two requests
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

oxymoron
New Member

United Kingdom
4 Posts

Posted - Aug 10 2004 :  06:24:33 AM  Show Profile
1.) When completing '#include', offer <> as well as "".
2.) Supposing I declare

void Foo( int x );

When I type "Foo(" I get the prompt "{ int x }". Cool! But I usually put a space after the '(', and when I type this, I lose the prompt for ever. Otherwise, I have to accept the completion and navigate back to add the space.

Either:

keep the prompt active till non-space is entered

or

have CTRL-space bring the prompt back.

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Aug 10 2004 :  07:12:16 AM  Show Profile
quote:
Originally posted by oxymoron

1.) When completing '#include', offer <> as well as "".


It does?!?

When I type #in, the popup offers me:
#include "-?"
#include <-?>
cause that's the way it is entered in the default template-file:
#in:
#include "-?"
#in:
#include <-?>


Or did I misunderstand you?

Go to Top of Page

oxymoron
New Member

United Kingdom
4 Posts

Posted - Aug 10 2004 :  07:56:40 AM  Show Profile
quote:
Originally posted by WannabeeDeveloper

quote:
Originally posted by oxymoron

1.) When completing '#include', offer <> as well as "".


It does?!?

When I type #in, the popup offers me:
#include "-?"
#include <-?>
cause that's the way it is entered in the default template-file:
#in:
#include "-?"
#in:
#include <-?>


Or did I misunderstand you?




My template says


#in:
#include "-?"
#ins:
#include <-?>


Note "ins", not "inc"
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Aug 10 2004 :  08:24:59 AM  Show Profile
That's strange.

It should look like this (everything else not beginning with # is stripped out):

#u:
#undef 
#p:
#pragma 
#in:
#include "-?"
#in:
#include <-?>
#im:
#import "-?"
#im:
#import <-?>
#if:
#ifdef -?
#endif
#ifn:
#ifndef -?
#endif
#el:
#else
#eli:
#elif 
#en:
#endif

where -? marks the caret-position after inserting the codebit.
You can edit these Templates to fit your needs either within Visual Assist (Options->Autotext/Templates->C++/VB/HTML/Whatever) or in the /Templates folder of your Visual Assist X Installation-Folder (typically C:\\Program Files\\Visual Assist\\Templates).
Note that these "square" chars are needed for VAX to recognize the end of a template-codebit (marked "FF" in the Visual Assist Options Template-Editor).
It is okay to have several equal "Triggers", like above with #in:
VAX will then show more than just one Template-Codebit and lets you decide which one you want/need.

We have a small discussion running here which shows what is possible with Autotext/Code-Templates.

Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Aug 10 2004 :  09:50:04 AM  Show Profile
Which version are you using, oxymoron? And have you upgraded versions without upgrading your templates? I have some memory that it used to work like your example.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 10 2004 :  6:21:27 PM  Show Profile
my template matches WannabeeDeveloper's


quote:
Originally posted by oxymoron

When I type "Foo(" I get the prompt "{ int x }". Cool! But I usually put a space after the '(', and when I type this, I lose the prompt for ever. Otherwise, I have to accept the completion and navigate back to add the space.


is this one of these suggestion boxes?



or another type?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000