In the last post, I showed off Insert with cursor. In this post we are going to look a bit more at those new productivity helpers, the Context Actions. You can find a list of those under Tools / Options / Coding / C# / Context Actions, where you can selectively disable ones:
We are going to take a look at "Extract Method" with the following sample:
You simply select an expression, and you get the options to either assign it to a local variable or to extract it as a method. I chose Extract Method, and then you get the now familiar blue line, which let's you select the insert location of the new method (press Enter to create the method at the selected location).
Obviously, NewMethod isn't exactly the name I wanted - conveniently, SharpDevelop kept the method name selected, and I press Ctrl+R to open the Rename dialog and give it an appropriate name. Done!