2014-04-10 16 views
13

VB.NET'te çok satırlı snippet'in altında ek bir satırın eklenmesini engellemenin bir yolu var mı? Çift pasajı kendisi sonunda fazladan bir satır yok kontrol ettimGenişletme çok satırlı snippet'i ek bir satır ekler

enter image description here

enter image description here

(hit sekmesi anahtarı ... pasajı genişletmek için). Ayrıca, bu VB'ye özgü gibi görünüyor.

+0

http://social.msdn.microsoft.com/Forums/vstudio/en-US/41b314d4-b448-4eea-be92-c5e29b963ee8/multiline-code-snippet-inserts-extra-blank-line- in-end? forum = visualstudiogeneral –

+0

Bu bence varsayılan davranış. –

cevap

0
<?xml version="1.0" encoding="utf-8" ?> 
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> 
<CodeSnippet Format="1.0.0"> 
<Header> 
<Title>trycatchex</Title> 
<Shortcut>trycatchex</Shortcut> 
<Description>Code snippet for try catch</Description> 
<Author>Microsoft Corporation</Author> 
<SnippetTypes> 
<SnippetType>Expansion</SnippetType> 
<SnippetType>SurroundsWith</SnippetType> 
</SnippetTypes> 
</Header> 
<Snippet> 
<Declarations> 
<Literal> 
<ID>expression</ID> 
<ToolTip>Exception type</ToolTip> 
<Function>SimpleTypeName(global::System.Exception)</Function> 
</Literal> 
</Declarations> 
<Code Language="VB"> 
<![CDATA[Try 
catch ex As Exception 
End Try 
End Sub]]> 
</Code> 
</Snippet> 
</CodeSnippet> 
</CodeSnippets> 
+0

Teşekkürler, ama işe yaramadı. Ekstra bir "End Sub" ve ardından aynı istenmeyen ekstra hattı ekledi. –

+1

Bu kodu siz yazmadınız. Nereden geldi ve neden orijinal kaynağı kredilemedin? –