diff --git a/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetManager.cs b/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetManager.cs index ddf9a923edc..e251361f04a 100644 --- a/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetManager.cs +++ b/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetManager.cs @@ -126,6 +126,12 @@ public sealed class SnippetManager 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 {