Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 "Previously selected text" for VAX 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
GennadiyKorol Posted - Jul 17 2008 : 6:44:57 PM
Good time of the day everyone,

Right now VAX can surround the selection with comments, brackets and what not.

What I would like to suggest is variable containing the text that was selected before we started typing and removed it.

Example:


// We've got this code selected:
performCleanUp();
shutDown();


Now what one would like to do is wrap this into if/else statement putting the text to the else case. We already have the snippet that does that but we need to open up the context menu and pick it from there to get it.

At the same time if we just continue typing having the above text selected, the text will be replaced with what we type and if we type
"if" the list of suggested snippets pops up.

Now I can much more quickly pick the right snippet and hit enter, VAX would recognize there was text removed in order to type the if and use it as "previous selection".


This way one could really quickly invoke snippets that surround selections:

Select the text, type snippet invocation string, accept the suggested snippet, enter - done.

Should save a lot of mouse/keyboard switching which is like a page fault in programming workflow :)
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 18 2008 : 09:28:20 AM
For now you can just use CTRL-X to cut the text and make sure the snippet uses $clipboard$, which will insert the text you cut.

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