Auto Completion

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Auto Completion

Postby sreenivasm » Mon May 22, 2006 6:17 am

Hi,

I want to know how to write a file for supporting auto completion feature in UltraEdit. For example, in a 'C' file, if i type "for" and press a particular key or command, the it has to be replaced by a set of lines as shown below:

for ( ; ; )
{

}


Thanks & Regards,
Sreenivas M
User avatar
sreenivasm
Newbie
 
Posts: 1
Joined: Sun May 21, 2006 11:00 pm

Re: Auto Completion

Postby Mofi » Sun Jun 18, 2006 11:17 am

It's not possible to write a multi-line string into the auto-completion file. The tag file support it, templates support it and also macros.

Disadvantages of tags: No hot keys, no cursor placement after inserting the multi-line string and no auto indentation support. Access to the templates only via the tag list.

Disadvantages of templates: No auto indentation support.
Advantages of templates: Hot keys and cursor placement after insert are possible. A template list also exists.

Advantages of macros: None of the limitations above, if your macro is well written. Macro list also available.
See for example How to auto complete "if...end if" ?
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Custom User Tools/Tool Configuration