Context Actions
Apart from significantly improving existing features and adding support for .NET 2.0 and VS 2005 ReSharper 2.0 offers a good number of completely new features. One of them is context actions.
This feature is available through lightbulb icon (similar to one used for QuickFixes, but it is yellow):

As with quickfixes, you can access the list of context actions by pressing Alt+Enter or clicking the bulb:

And, of course, any of available actions can be applied:

Available set of context actions is not very broad, but includes very useful ones:
- Split if (a && b) { ... } into if (a) { if(b) { ... } )
- Transform "Hello, " + name + "!" to string.Format("Hello, {0}!", name)
- Implement abstract or interface member
- And others
Here I must confess that one of my greatest hopes is that extension capabilities we introduce in ReSharper 2.0 will be at least as
popular as IDEA's; in particular I hope our users will implement their own context actions - general or specific for their project.
Posted by Oleg Stepanov at December 23, 2005 11:27 AM
| TrackBack