Is there a command that can automatically PROMOTE a section of code into a Method (within the same class).
You would select a section of code - Activate the Promote Method which will ask you for a method name.
Then the code would be replaced with the method_name()
...and insert a section of code (at the end) with...
public void Method_Name()
{
// Highlighted code inserted here!
}
-- Alternate.
The code could (instead) by re-inserted into the clipboard and let the Coder insert it where they want.
BTW does the editor have an UNDO feature?