VA Snippet Tip #1

VA Snippets support a number of reserved strings that enable text substitution when inserted into the text editor.  For example, any occurrence of $selected$ in a snippet is replaced with the actual text editor selection at the time the snippet was invoked.

As noted in a previous post, VA Snippets support shortcuts.  You wouldn’t want to use the $selected$ reserved string with a snippet that you want to invoke via a shortcut since typing the shortcut will overwrite your text selection (in this case, occurrences of $selected$ would simply be removed from the snippet when it is inserted into the text editor).

Instead of using the $selected$ reserved string, use $clipboard$.

Now you can use a shortcut to invoke the snippet with one small extra step:

  • Make your text selection
  • Copy (or Cut)
  • Type the shortcut and accept the snippet suggestion

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s