You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I love yasnippet. Most of my snippets look somewhat like this:
name: square brackets
key: s
expand-env: ((yas-wrap-around-region t))
--
[$1] $0
I would love to select some text, then use yas-insert-snippet to put the selection into the square brackets and jump to $0 with TAB. I am aware that I could use the variable yas-selected-text instead but I would really like a way to either set the expansion around $1 globally or per-snippet.
The text was updated successfully, but these errors were encountered:
Hello, I love yasnippet. Most of my snippets look somewhat like this:
name: square brackets
key: s
expand-env: ((yas-wrap-around-region t))
--
[$1] $0
I would love to select some text, then use yas-insert-snippet to put the selection into the square brackets and jump to $0 with TAB. I am aware that I could use the variable yas-selected-text instead but I would really like a way to either set the expansion around $1 globally or per-snippet.
The text was updated successfully, but these errors were encountered: