0

I'd like to use visual studio code to do this type of refactoring:

public static class Constants
{
    public const string MyValue = "0";
    public const string MyValueTwo = "0";
}

Into...

public static class Constants
{
    public const string MyValueTwo = "0";
}

public static class MyNewConstants
{
    public const string MyValue = "0";
}

And convert usages of Constants.MyValue to MyNewConstants.MyValue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.