Create Visual Studio Extension to help me with my library RRS feed

  • Question

  • Hello!

    I'm creating a library in C#, and there's a lot of repetition that's going on so I was wondering if it was possible to create an extension/tool which could help me automate it instead of me having to do all the work manually?


    String X;
    String Y;
    String Z;
    Int32 SomeNumber;

    I wish to be able and create a tool where if I e.g right-clicked on X, I'd give me the option to automatically create something like this:

    internal String _X { get; set; }
    internal String _Y { get; set; }
    internal String _Z { get; set; }
    internal Int32 _SomeNumber { get; set; }
    public String X => _X;
    public String Y => _Y;
    public String Z => _Z;
    public Int32 SomeNumber => _SomeNumber;
    Is it possible? If so, what could I search for to get started on such a extension/tool? Thank you in advance.

    Saturday, May 25, 2019 2:03 PM

All replies