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
 Feature Requests
 Snippet Suggestion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gdobratz
Junior Member

USA
17 Posts

Posted - Feb 01 2010 :  6:51:38 PM  Show Profile  Reply with Quote
There have been a number of snippets that I have wanted to create using $selected$ but I didn't want the snippet text appearing in place of the selection.

It would be helpful if there were a way to specify that the snippet text appear above/below the line containing the selection.

Something like the following would be great:
$line up/down (or before/after)$<my snipet text>

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 03 2010 :  03:45:46 AM  Show Profile  Reply with Quote
I like this idea, because it would extend the possibilities. However using the prev. / next line can cause problems if you are in a multi-line expression (for examle a complex if) depending on what do you want to use it for. Can you give me some example idea?
Go to Top of Page

gdobratz
Junior Member

USA
17 Posts

Posted - Feb 04 2010 :  11:12:47 AM  Show Profile  Reply with Quote
I have had occassion to do this mostly when I wanted a snippet that operated on a class/method/variable name. I want to select the text of interest and then have a snippet generate the desired code from the selection.

For my purposes, your concern about multi-line expressions, method calls, etc., isn't that big an issue for me. I can always move the text generated by the snippet.

My goal here is to keep the snippet text from destroying/replacing the selected text.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 04 2010 :  2:17:27 PM  Show Profile  Reply with Quote
I have put in a feature request to see what the developers make of it:

case=39229
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000