4

我可以修改此代码片段,以便当我使用片段时,SSMS光标位于片段的末尾,可供我继续编写脚本吗?

<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<_locDefinition xmlns="urn:locstudio">
    <_locDefault _loc="locNone" />
    <_locTag _loc="locData">Title</_locTag>
    <_locTag _loc="locData">Description</_locTag>
    <_locTag _loc="locData">Author</_locTag>
    <_locTag _loc="locData">ToolTip</_locTag>
   <_locTag _loc="locData">Default</_locTag>
</_locDefinition>
<CodeSnippet Format="1.0.0">
<Header>
<Title>top10star</Title>
<Description>my first snippet</Description>
<Author>Me</Author>
</Header>
<Snippet>
<Code Language="SQL"><![CDATA[SELECT TOP 10 * FROM]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
4

1 回答 1

3

我最终得到以下结果:

<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<_locDefinition xmlns="urn:locstudio">
    <_locDefault _loc="locNone" />
    <_locTag _loc="locData">Title</_locTag>
    <_locTag _loc="locData">Description</_locTag>
    <_locTag _loc="locData">Author</_locTag>
    <_locTag _loc="locData">ToolTip</_locTag>
   <_locTag _loc="locData">Default</_locTag>
</_locDefinition>
<CodeSnippet Format="1.0.0">
<Header>
<Title>top10star</Title>
<Description>my first snippet</Description>
<Author>Me</Author>
</Header>
<Snippet>
<Code Language="SQL">
<![CDATA[SELECT TOP 10 * FROM$selected$ $end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
于 2013-04-11T08:48:44.690 回答