[wingide-users] question about snippets
support at wingware.com
Tue Jul 17 07:50:52 MDT 2012
Ernest French wrote:
> I would like to make a function that does this:
> 1. select text
> 2. execute function / snippet with keyboard combination
> text is replaced by <stuff>text</stuff> with the cursor at the end.
> How would I go about doing that? Would it be a snippet?
> It's better if <stuff> is hardcoded, rather than having to type it in
> every time.
This snippet would work:
You would want to add one snippet per value of "stuff" and probably bind
them to keys (right click in Snippets tool to do that) since typing to
select the snippet from the auto-completer would overwrite your selection.
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users