mmanela / SnippetDesigner

The Snippet Designer is a plugin which enhances the Visual Studio IDE to allow a richer and more productive code snippet experience.
Apache License 2.0
344 stars 85 forks source link

This have Bug ,when the code have quotation marks #157

Closed AtlantisDe closed 4 years ago

AtlantisDe commented 4 years ago

Description

This have Bug ,when the code have quotation marks

Demo Code

            try
            {

            }
            catch (Exception ex)
            {
                Serilog.Logger.Warning($"Exception:DemoTestCode{ex.Message}");
            }
            finally
            {
            }

after use

   try
            {

            }
            catch (Exception ex)
            {
                Serilog.Logger.Warning(

template

<?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>d1</Title>
      <Author>
      </Author>
      <Description>
      </Description>
      <HelpUrl>
      </HelpUrl>
      <Shortcut>d1</Shortcut>
    </Header>
    <Snippet>
      <Code Language="csharp" Delimiter="$"><![CDATA[ try
            {

            }
            catch (Exception ex)
            {
                Serilog.Logger.Warning($"Exception:DemoTestCode{ex.Message}");
            }
            finally
            {
            }]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
AtlantisDe commented 4 years ago

$$ two Is OK