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

Support for JavaScript


For a long time, writing JavaScript code in Visual Studio was very painful. There were no tools that could support writing JavaScript. But ReSharper changed this by providing you with a rich set of features that you know from C#.

Tip

ReSharper supports JavaScript code, both written in separate files and inline in the same way.

Smart IntelliSense

Support for JavaScript starts with IntelliSense. IntelliSense prompts you with defined JavaScript keywords and methods, and objects and methods from your custom objects as well as from external JavaScript libraries such as jQuery. A sample prompt for jQuery methods is shown in the following screenshot:

Tip

In jQuery, selectors are very important as they allow you to access any HTML element. ReSharper can help you with specifying selectors by providing you with a list of available CSS classes and HTML tags.

The Code Analysis and refactoring options

Another well-known ReSharper feature is Code Analysis. It allows you to quickly find...