N
Nathan Sokalski
I am learning how to use and write Code Snippets. I have successfully
learned how to write and use Code Snippets with
<SnippetType>Expansion</SnippetType> with no problem. However, I am having
trouble writing/using Code Snippets with
<SnippetType>SurroundsWith</SnippetType>. From my understanding, this is a
Code Snippet that uses the selected text in the Code Snippet. Here are my
two main questions:
1. How do you use the ShortCut? If you start typing after selecting text,
the text becomes unselected, therefore causing nothing to be selected when
the Code Snippet is inserted.
2. In the *.snippet file, how do you reference the selected text? In Figure
11 on http://msdn2.microsoft.com/en-us/library/bb245788(VS.80).aspx the
Literal $selected$ is used for this, so I am assuming that is correct. Is it
(I cannot test it until my first question is answered)?
Any help would be appreciated. Thanks.
learned how to write and use Code Snippets with
<SnippetType>Expansion</SnippetType> with no problem. However, I am having
trouble writing/using Code Snippets with
<SnippetType>SurroundsWith</SnippetType>. From my understanding, this is a
Code Snippet that uses the selected text in the Code Snippet. Here are my
two main questions:
1. How do you use the ShortCut? If you start typing after selecting text,
the text becomes unselected, therefore causing nothing to be selected when
the Code Snippet is inserted.
2. In the *.snippet file, how do you reference the selected text? In Figure
11 on http://msdn2.microsoft.com/en-us/library/bb245788(VS.80).aspx the
Literal $selected$ is used for this, so I am assuming that is correct. Is it
(I cannot test it until my first question is answered)?
Any help would be appreciated. Thanks.