SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Christoph Wille

What's New in SD5: Context Actions

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!

Published Jan 27 2014, 07:48 AM by ChristophWille
Filed under:

Comments

No Comments
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.