1

I've got some pieces of code I need to turn in to snippets. Anyone know a good tool of visual studio plug-in that can do something like this?

Basically I would like to be able to parameterize code like this:

//MOVE TO TOP!!
private XmlData subject;

/// <summary>
/// Gets or sets the subject.
/// </summary>
/// <value>
/// The subject.
/// </value>
public XmlData Subject
{
    get
    {
        if (subject == null)
        {
            subject = CreateXmlDataInstance(Post_DA.SUBJECT_FIELD);
        }
        return subject;
    }
    set
    {
        subject = value;
    }
}

I hope one of you guys know a good tool.

1 Answer 1

1

I create snippets manually, but maybe a snippet designer like this can help you: SnippetDesigner

I don't think you could do that automatically any way - you have to define which elements to parameterize at least.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.