1
Vote

In VS 2008 (using C#), code not being extracted/added to .snippet file

description

I highlight the code within the editor, but each time I export, the code is not populated in the CDATA section. Everything else seems to be working fine though.

file attachments

comments

kubiscopus wrote Sep 22, 2008 at 2:58 PM

If you dont have replacements the tempstring will be empty chage the code:
For Each subst In ReplacementsList
  If String.IsNullOrEmpty(subst.Id) = False Then
     tempString = selection.Replace(String.Concat(" ", Trim(subst.Id), " "), String.Concat(" $", subst.Id, "$ "))
  End If
Next
lIKE THIS:
                If ReplacementsList.Count > 0 Then
                    For Each subst In ReplacementsList
                        If String.IsNullOrEmpty(subst.Id) = False Then
                            tempString = selection.Replace(String.Concat(" ", Trim(subst.Id), " "), String.Concat(" $", subst.Id, "$ "))
                        End If
                    Next
                Else
                    tempString = selection
                End If

wrote Feb 12, 2013 at 11:47 PM