T O P I C R E V I E W |
gdobratz |
Posted - Feb 01 2010 : 6:51:38 PM 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>
|
3 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Feb 04 2010 : 2:17:27 PM I have put in a feature request to see what the developers make of it:
case=39229 |
gdobratz |
Posted - Feb 04 2010 : 11:12:47 AM 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.
|
accord |
Posted - Feb 03 2010 : 03:45:46 AM 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? |