Book Image

ReSharper Essentials

By : Lukasz Gasior
Book Image

ReSharper Essentials

By: Lukasz Gasior

Overview of this book

Table of Contents (18 chapters)
ReSharper Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

ReSharper adds an amazing set of features that make Visual Studio a much, much better IDE, making a developer's work easier. It's probably the best plugin for Visual Studio.

Throughout this book, we will explain all the features that help you write smarter code, find things quicker, and provide better quality code.

ReSharper Essentials shows you how ReSharper improves a developer's work.

What this book covers

Chapter 1, Getting Started with ReSharper, explains what ReSharper is, what versions are available, and how to get them.

Chapter 2, Write Smarter Code, describes the features that allow you to write code easier. You will learn about generating code, using templates, and the available refactoring mechanisms.

Chapter 3, Finding What You Need Quickly, shows you how you can use ReSharper to quickly find the required class, file, or anything you need in your project. It also describes tools that show code references and structure.

Chapter 4, Making Your Code Better, discusses tools that will improve your code. You will learn how to use code-quality analysis and eliminate errors and code smells.

Chapter 5, Extended Support for Web Developers, describes the features that help in writing web applications. It explains how ReSharper helps write ASP.NET (MVC), JavaScript, TypeScript, and HTML/CSS code.

Chapter 6, Unit Testing, shows you how ReSharper helps run unit tests and how you can use it with dotCover to analyze code coverage.

Chapter 7, Extending ReSharper, comes as a quick introduction to writing plugins for ReSharper. It quickly explains the ReSharper API, the built-in tools that help in writing plugins, and how you can create a simple plugin step-by-step.

Chapter 8, Tools for Architects, describes new tools that help analyze the project structure and check referenced assemblies.

Chapter 9, Code Analysis Beyond Visual Studio, describes new, free command-line tools to run code analysis beyond Visual Studio.

Chapter 10, Recommended Plugins, provides you with a description of five plugins recommended by the author.

Appendix, Keyboard Shortcuts, provides you with a list of the most useful shortcuts covered in this book.

What you need for this book

As ReSharper is a Visual Studio plugin, you need to have Visual Studio installed on your computer. Unfortunately, the free Express edition is not enough. The screenshots presented in this book come from Visual Studio 2013, but all the presented features will also work with older versions starting from 2005.

You will also need ReSharper, of course. You can use the free 30-day trial to learn the presented features. We will show you how to get it in Chapter 1, Getting Started with ReSharper.

Who this book is for

ReSharper Essentials is aimed at developers who work with Visual Studio and want to make their work more efficient. It is most useful for new ReSharper users, but those who are currently using it will also find many useful things to learn.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, folder names, and filenames are shown as follows: "As you can see, this class starts with ActionHandler, which contains the name that we used in the Actions.xml file."

A block of code is set as follows:

if (false = $value$)
{
$statement$
}

Any command-line input or output is written as follows:

dupFinder [OPTIONS] source

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "From this screen you can click on Install to run the installation process, or click on Advanced to configure more settings."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.