Browse Source

add using-snippet

pull/23/head
Siegfried Pammer 14 years ago
parent
commit
d579a21ab7
  1. 6
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetManager.cs

6
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetManager.cs

@ -126,6 +126,12 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets @@ -126,6 +126,12 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets
Text = "try {\n\t${Selection}\n} finally {\n\t${Caret}\n}",
Keyword = "try"
},
new CodeSnippet {
Name = "using",
Description = "Using statement",
Text = "using (${resource=null}) {\n\t${Selection}\n}",
Keyword = "try" // using is not a good keyword, because it is usable outside of method bodies as well.
},
}
},
new CodeSnippetGroup {

Loading…
Cancel
Save