有什么方法可以防止在 VB.NET 中的多行代码段下方添加额外的行?
(按 Tab 键以展开代码段...)
我已经仔细检查过片段本身在最后没有多余的行。此外,这似乎是特定于 VB 的。
最佳答案
只需关闭 ]]
你剪完之后。 ¿end¿
插入剪切后,部分将插入符号设置在此位置。
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>tryt</Title>
<Author>[USERNAME]</Author>
<Description>
</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>tryt</Shortcut>
</Header>
<Snippet>
<Code Language="vb" Delimiter="¿"><![CDATA[Try
¿end¿
Catch ex As Exception
Throw New Exception(ex) 'or do some other stuff
End Try]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
关于vb.net - 扩展多行代码段在底部添加额外的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22990688/