Resharper4.5: Enhance your .net development (rpm)

Turn: http://www.cnblogs.com/mickeychang/archive/2009/04/11/1433430.html

Original: http://www.codeproject.com/KB/showcase/ReSharper4_5.aspx

A good memory as bad written. Next record, since there need to be able to see.

 

Introduction

Undoubtedly, ReSharper the most intelligent of Microsoft Visual Studio plug-ins. It includes a rich set of C # and can greatly increase the Visual Basic.net developer productivity features. Use ReSharper, you can perform deep code analysis, as intelligent code assist, real-time error code highlighting, code analysis within the range of solutions, fast code is correct, one step code formatting and cleanup, automatic code refactoring industry-leading, high-level integrated unit testing program, and within the powerful search and navigation solutions. Essentially, ReSharper features can be used in C #, VB.net, XML, Asp.net, XAML, and build scripts. ReSharper also provides enhanced cross-language features for C # and VB.net, it enables developers to effectively control .net Combines.

If you are interested, you can key feature of ReSharper find more instructions.

About ReSharper 4.5

We just released the long-awaited ReSharper 4.5!

In addition to enhancing the characteristics of the original version of ReSharper, we shift the focus to performance and memory. When developing ReSharper4.5, make this tool more agile, robust and rapid response is our main goal. The face of a challenge to increase developer productivity tools, we focus is to provide strong performance. Obviously, ReSharper4.5 than 4.1 solutions speed load increased by 30%, speed of search is commonly used members of twice the 4.1, approximately 45% time savings in terms of intelligent assistance when entering. Memory consumption when performing large file analysis there is a large reduction, which makes Asp.net and Linq to sql developers benefit from it. In short, Resharper without a reduction in response speed, providing enhanced wider than ever.

ReSharper performance boost

ReSharper Performance Improvements

ReSharper 4.5 also brings large improvements and significant performance gains.

Warnings and propose new solutions to a range of l: analysis of non-proprietary types and type members throughout the solutions inherent idle time.

l Visual Basic 9 support: ReSharper cross language refactoring and now supports enhanced editing experience VB9 code, including variable type local variables, object initialization, anonymous types, extension methods.

l Improved naming mechanisms: Now you can define your own naming style framework for the different language and identity, and use your specific code policy to let ReSharper complete and generate code.

l The new embedded field reconstruction and remodeling of existing productivity enhancements.

l to achieve: a base member or from a reference type to direct any of its direct implementation, ignoring intermediate abstract classes and / or interfaces.

To get the new, faster ReSharper, from downloading

ReSharper Key Features
C # 3.0 depth analysis

ReSharper analysis of the entire solution to listen to your code errors and warnings, and real-time (when you enter) to highlight them. For most error, it immediately corrected by the intelligent solution to the problem is given. It can also give advice and coded clues, the stuff provide insight and logical code structure, design and draw your attention to potential errors. You can also comment your code to make better ReSharper analyze your code.

ReSharper provides comprehensive support for C # 3.0, including LINQ, implicitly typed local variables and arrays, extension methods, automatic properties, lambda expressions, initialize objects and collections, anonymous types, expression trees, and part of the method. Whenever there is an error or if invalid code in your code, ReSharper will immediately let you know.

Read More C # code analysis

Level code assist

ReSharper provides a number of shortcuts to simplify the code tasks to improve your productivity and save you time. In the above screenshot, ReSharper intelligence suggest that you add using the correct import missing or full name when you enter the type name. It can use different code templates to quickly generate the code, see document types and their members in the editor, called the use of "contextual action" (context actions) to perform transcoding, there are other more.

ReSharper uses three types of code completion to extend and improve the intelligence Visual Studio itself. Completion of the proposed access only to identify the type of the current scope. Intelligent complete the task is very effective, real-time filtering methods and member variables to match the expression you entered. Import symbol is completed, the completion of the current project name and type name extension methods possible. It also automatically added when needed using the appropriate reference. Another statement is completed, using a simple shortcut to automatically add the necessary syntax elements (braces, semicolons, etc.), and place the cursor to an appropriate position to start the next one.

Read the high-level code to help more of ReSharper

Numerous code refactoring

In the Visual Studio environment, ReSharper provides a wealth of automated code refactorings for C # and Visual Basic.

Change Signature

Copy Type

The method of making a non-static (non-shared)

The abstract class to the interface

Encapsulate Field

The method is static (shared)

The anonymous type to a named type

Extracting parameters from the class

Mobile static member

Transformation extension method is simple static method

The extraction port

The file type to another or namespace

Conversion Index (default property) as a method

Extraction Method

An outer layer to the type of mobile

Conversion interface is an abstract class

Extraction superclass

The members of the base class pulled

Index conversion method (default property)

Inline method

The members into subclasses

Conversion method for the property

Inline Variables / field

Heavy naming

Attribute is automatically converted properties

Incoming field

Alternatively constructor with a factory method

The method of converting property

Introduce Parameter

Safely Remove

Convert static method as an extension method

Introduce Variable

If possible, try to use the base class

Each code refactoring should analyze the entire range of the selected application (which may be your entire solution), including cross-language code, the most intelligent way possible to modify the code structure of this insight. Can rename, move, delete security identifier; import and inline fields, variables and parameters; automatic translation attributes to attributes and methods, the method of converting a static extension method, and the like. Moreover, using a rapid correction and contextual action, so that a variety of simple code conversion (merely for convenience and are available) becomes possible.

Annotation : Inline here refers to the method or methods thereof variables defined outside the code directly embedded into use.

Read more about using ReSharper refactoring C # and VB.net code

Navigation and search

Whenever you need to find a certain type, field, method, or any other identity, ReSharper provides a variety of implementations, you can find a identified by name in the code from the reference location to navigate to the location identified in the statement, and to find high highlight logo usage. You can achieve all of the available navigation behavior using a simple shortcut on the current position.

In addition, the use of special tools integrated into Visual Studio window user interface, ReSharper lets you see full type inheritance tree and file structure.

ReSharper to extend the characteristics of recently edited a series of navigation and search - the drop-down list identifies the file or you recently modified.

Read more navigation and search

Code cleanup

Code cleanup is a shortcut to dozens ReSharper characteristics (Code Cleanup is a shortcut for a dozen of ReSharper features), according to self-defined style formatted code arrangement "this" qualifier, removing redundant code, in accordance with field is automatically converted to the candidate attribute, the field is set to read-only, the optimization using command, appropriate simplification references, update the file header, explicit use vars replacement type, or more settings to modify your C # code.

对VB.net,优化import命令,适当的简化引用,根据格式风格格式化你的代码。可以在批模式下进行代码清理工作,所以可以即刻对整个项目甚至解决方案进行清理。

阅读更多关于代码清除内容

交叉语言功能

为了混合C#和VB.net项目,ReSharper帮助你保持代码的各个部分在一起流畅的工作和在你的代码间轻松的导航。

所有导航和搜索动作把所有语言的代码都考虑在内,包括C#,VB.net,Asp.net,和XAML。你可以导航到使用,声明,继承,基类和更多—交叉语言。无论何时只要可能,都会由使用重构、上下文动作、或覆盖两个主要语言的快速修改进行自动引用修正。单元测试是可用的,并且无论使用C#或VB.net写单元测试都是一样的用。

阅读更多的ReSharper交叉语言功能

ASP.net支持

利用错误高亮,快速修正,上下文动作,代码协助,导航,重构,和其他特征,你现在可以愉悦而高效的编辑Asp.net文件。使用ReSharper,你可以不受打扰的在Asp.net中编辑和重构C#代码,如Web控件属性和事件,数据源,和内容点位符。

阅读更多的Asp.net支持

XML支持

ReSharper提供了一些省时的XML特征,包括类型完成,导航到引用类型,高亮显示,替换和移动标签,在两个标签之间导航和打开/关闭标签,使用代码协助和活模板。

阅读更多的XML支持

XAML支持

XAML特征包括XAML代码中的XML编辑,所有的ReSharper代码完成特征,几个重构(包括重命名重构),和实时错误提示,语义和语法分析。上面的截屏中显示在XAML资源中的敏捷的代码完成工作。

阅读更多的XAML支持

集成单元测试

ReSharper自动侦查代码中的单元测试,并提供完整的单元测试支持。你能从代码编辑器中运行和调试测试。同时,一个专用的单元测试资源窗口会让你看到你的单元测试的结构和运行一个或多少单元测试会话的任意组合测试。

阅读更多的ReSharper单元测试

NAnt和MS Build脚本编辑

Advanced editing capabilities (Advanced editing capabilities), before only for C # can be used, now extended to NAnt and MSBuild scripts, provide a complete code help to generate a script, a large number of navigation and search features, file structure, real-time error highlighting and rapid changes.

Read more NAnt and MS Build script edits

To get the complete description of ReSharper features, please visit ReSharper features page.

Why ReSharper

Contains C # 3.0, Visual Basic.net, XML, XAML and Asp.net unprecedented support, contain a cross-language functions are performed, ReSharper sure to provide a higher level of satisfaction than before for Visual Studio developers.

This tool can reduce the time you consume on a regular and repetitive manual labor affairs, so you have more time to concentrate on existing tasks. It is a large number of automatic error checking and correction feature codes can reduce development time and improve your work efficiency. You will find ReSharper soon satisfaction with their purchase costs and improve the efficiency of development to enhance the quality of the code. Use ReSharper, .net developers will experience what is "pleasant development."

Download ReSharper4.5

 

Who have more in-depth research, we can explore each other at ([email protected]). ReSharper time of this writing, has been out to the 6.0

Attach Download: http://www.jetbrains.com/resharper/download/index.html

Reproduced in: https: //my.oschina.net/cookblack/blog/621360

Guess you like

Origin blog.csdn.net/weixin_33967071/article/details/92046041