Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Selection content Fragmentation

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
charfeddine.ahmed Posted - Nov 14 2008 : 03:34:25 AM
Well I just created account to be able to put my suggestion.
The problem is that instead of the many number of Intellisense parsers like VAssistX product, I can't find one that really answers the very important feature I long for.

What is actually prompting me and encouraging me to post it is the fact I saw the VASnippet Editor and the very possibility that the feature can be easily added to future VAsssitX versions.

Enabling the user to define new shortcuts and make link to a custom definition of what the generated code would be is really a very good step.

Now it suffices for me the following to reach the tremendous things I'd like to do :

First, just allow the user to define (inside the VASniipet editor) a rule of fraglmentation of the inner content of the $Selected$ var.
Finally, with the aid of that rule allow him to do a much complex way of constructing the Snippet content (the thing that will replacethe shortcut) by giving access to the fragmentation result.

I explain with a very very very basic example OK ? OK :
suppose I'd like to automatize the fact that always when I have a class constructor implementation, then I need to just collect the parameters and assign them to equivalent memebers :

class SomeClass::SomeClass(Type1 param1,Type2 param2..)
{
this->param1=param1;
this->param2=param2;
..
}

It would be very easy for me if I can just select the parameters list and invoke a shortcut that just inserts the set of :
this->xxx=xxx;


Please can you see what I mean ? Otherwise I can send you at least 30 cases which it will be really not intelligent to ask for their adhoc individual implementation. Instead if we have this model in place, then evrything can be solved.

Looking forward to an answer from you.

Thank you in advance.
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 24 2008 : 08:18:38 AM
For your specific example, picking up the function parameters, you can do this with VA's Document Method feature. Edit the Snippet to add the line:

this->$MethodArgName$ = $MethodArgName$;

which will generate the code you are wanting, which you can then cut and paste into the inside of the function body.

We are considering allowing the refactoring Snippet tokens in non refactoring Snippets:

case=3204

which might help.

It really depends on how clever you want these rules to get. It is fairly easy to think of rules that would require a programming language to support. We do not have any current plans to add a programming language to VA Snippets, after all the IDE already has a macro programming language of its own.
accord Posted - Nov 20 2008 : 5:01:36 PM
Have you considered using IDE's VB Macro capabilities?

These threads are about macros and snippets:
http://www.wholetomato.com/forum/forum.asp?FORUM_ID=13

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