我是否可以修改此代码段,以便在我使用代码段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>
答案 0 :(得分:1)
我最终得到了以下内容:
<?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>