Forum Replies Created
- AuthorPosts
- jonhutch24Member
zhouzh2 wrote:
Do you have any plan to make the snippet plug-in more powerful (like TextMate’s bundle system):Type
for[TAB]
get:
for (unsigned int i = 0; i < count; i ++)
{
^
}The first Tab stays on “unsigned int”, a second Tab stays on “i”, if you change “i” to “idx”, then the following “i”s changes to “idx” too. A third Tab go to “count”, a fourth tab let the cursor goes to “^”‘s position and close snippet mode therefore you can insert Tab normally.
I just tested TextMate on my friend’s computer and this so-called “bundle” is quite amazing.
This feature has be requested for some time now. But please feel free to keep hounding them about it! Hopefully we can get enough people to push it then he’ll implement it :-)
June 23, 2008 at 1:12 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5939jonhutch24MemberJust checking on the status of this and wondering if we’ll be seeing these features anytime soon?
April 28, 2008 at 3:43 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5719jonhutch24Memberblackhawk wrote:
I agree. So long as when you replace the first one, it does all the rest, then moves to the next tag.Good catch blackhawk! I knew I was forgetting something in that last example. :-? Yes, it would need to move on to the next unaltered tag when you hit tab. :-)
Edit: I just realized that this thread may not be the best place to do this. This thread (I believe) was started in regards to the autocomplete plugin. My requests are more snippet plug-in oriented. If you need us to move this to a new thread, I’ll be more than happy to copy and paste (or retype if necessary) everything others and myself have requested the snippet plugin do.
April 28, 2008 at 2:54 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5717jonhutch24MemberYAR! (Yet another Request)
Along with everything mentioned above, the ability to complete multiple tab stops by naming them the same and only typing over one.
Example (since I suck at explaining things):
I have the snippet:
while $var1$ = $answer$ continue
msgbox(“The user answered:” & $answer$)
end whileso when I fire it up (maybe by typing “mywhile” and hitting tab ;) ) I type something like this:
userAnswer -> TAB -> “Forty two” -> TABand the string “Forty two” is put in both places where $answer$ is so in the end it looks like:
while userAnswer = “Forty two” continue
msgbox(“The user answered:” & “Forty two” )
end whileDoes this make sense? I know I’m asking a lot from this snippet plug in. But it’s a VERY useful feature when doing a lot of repetitive coding… Thanks so much for your input and time!
:-DApril 25, 2008 at 8:13 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5709jonhutch24MemberAnother request for the snippets, is text expansion.
Take my last example for instance:
The snippet is:
if $con1$ = $con2$ then
$expression$
end ifIt would be nice if I could assign a command to type (in this example “ifstate”) and type something like:
ifstate -> TABAnd then have the snippet put the entire snippet in with $con1$ already highlighted. Not sure if this interferes with any of the other systems already in place, but it would be SUPER useful instead of having to go back and forth to the snippet pane. :D Thanks for the great product!
April 25, 2008 at 2:46 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5704jonhutch24MemberSorry, let me show you an example
Let’s say I make a snippet and it looks like this (this is just in theory):
if $con1$ = $con2$ then
$expression$
end ifNow when I run the snippet I’d like $con1$ already highlighted so I could just write over it, and when when I hit the tab key, it would move to $con2$ and highlight it so I could write over it, and when I hit tab again it would move to $expression$ and highlight it so I could type over it.
So my typing would look something like this:
Run the snippet
var1 -> TAB -> 23 -> TAB -> writeline(“It’s 23!”)and the text editor in the end would have:
if var1 = 23 then
writeline(“It’s 23!”)
end ifdoes this make any more sense? Sorry, I’m not very good at explaining things some times… :-?
April 23, 2008 at 2:01 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5687jonhutch24MemberOk what I would REALLY like is tab stops in the snippets. That’s my request! :)
jonhutch24MemberThe features I really need mirror the functionality found in the snippet component found in Visual Studio 2005.
What I would like to see would be to have a template like this:
Public ReadOnly Property $PropName As $PropType
Get
Return $ProbField
End Get
End PropertyWhere when you insert the snippet, you can tab through the $tags and insert the text you want.
jonhutch24MemberAlways a useful feature. I cast my vote for this functionality as well.
March 6, 2008 at 2:32 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5551jonhutch24MemberI second that motion. This kind of functionality would make EmEditor nearly invaluable to me as a programmer.
- AuthorPosts