Extract Method and Inline Literals for CodeRush
- Extracts the locals from the selected code.
- Extracts the remaining code to a new method.
- Inlines the extracted locals back into the resultant method call.
This refactoring can be very helpful in reducing the complexity of code within a method.
Here is a screenshot of it in action.
More information can be found on this blogpost
This plugin requires CodeRush. You can locate a free trial of CodeRush here.
CodeRush is a powerful productivity tool built byDevExpress. It is designed to help you produce higher quality, more readable code with far less effort and in a fraction of the time.