Is there such a thing? Either as a part of the product or a plugin? I can't see to find it.
I want to go from:
public DataTable Fetch() {
return ExecuteDataTable(_ConnectionString, "pr_DetectAffectedOrderLines");
}
to:
private const string SP_DETECT_AFFECTED_ORDER_LINES="pr_DetectAffectedOrderLines";
public DataTable Fetch() {
return ExecuteDataTable(_ConnectionString, SP_DETECT_AFFECTED_ORDER_LINES);
}
ReSharper | Refactor This (Ctrl-Shift-R) | Introduce field, then select to introduce constant.
There is a direct shortcut to refactor: Ctrl+R, Ctrl+F
.
There are 3 of them:
Demo with the "Introduce Variable" as example:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With