VS2015 Free Plugin refactoring Essentials_ practical tips

Source: Internet
Author: User
Tags visual studio sharpdevelop

Signature

Previously developed by the SharpDevelop team and used to sharpdevelop the refactoring plug-in in this open source IDE, "Nr6pack" was renamed "Refactoring Essentials" and was Hanselman called the "Web A compliment to Essentials "read the original text" to see Hanselman's introductory article, and I think the plugin will be one of the necessary plug-ins on visual Studio 2015 as well as Web Essentials.

Because it has the following refactoring function (HTTP://VSREFACTORINGESSENTIALS.COM/FEATURES/REFACTORINGS-CSHARP):

Code that prompts you to add a key in the dictionary
It prompts you to have mathematical expressions that compute constants exist
Prompts you to convert the enumeration bit comparison to use the Enum.hasflag method
Prompts you to change the direct conversion of the data type to safe conversion (using the AS keyword)
Prompts you to change the while loop to Dowhile loop
Responsible for comments from the base class
Create Changedevent
Convert Switch to If
It also brings the following code analysis functionality (HTTP://VSREFACTORINGESSENTIALS.COM/FEATURES/REFACTORINGS-CSHARP):

Using an array initializer instead of an array to create code
To convert closures to method groups
Converts the conditional ternary operator to a null-value connector
Converts the If judgment to an or expression
Provides recommendations for the use of nameof keywords
Check for text that cannot be resolved
Simplified three-dimensional operation expression of condition
The refactoring and analysis features above are only part of the example, in fact, this plugin provides 71 refactoring and 73 analysis features altogether. In addition, "Refactoring Essentials" has so many functions, fully benefited from the Roslyn powerful code analysis of the basic functions.

The above mentioned is the entire content of this article, I hope you can enjoy.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.