
We’ve also added support for Jasmine and PhantomJS test driver in ReSharper 7, which we’ve already covered in this post. Here is a sample of Code Completion with addEventListener/removeEventListener: Once again, we have covered this previously. ReSharper 7 also provides support for JavaScript for Metro applications. With Visual Studio 2012 allows us to create Windows 8 Metro applications using C# and XAML, as well as JavaScript and HTML. Once again, we also provide support for new methods defined in ECMAScript 5

In terms of Code Completion, we have added support for event handlers under WinJS/WinRT (see below), as well as some nice little additions available globally Making JavaScript a bit easier to work with and help in learning.

These are just some of the context actions out of the 30+ that we have added, including tiny but small annoyances such as using double quotes when single is required We also now support defineProperty in multiple ways When selecting to wrap get-accessor gives way toĪlternatively, if selecting the first option, we’d get ReSharper 7 also adds support for the new property accessors in EcmaScript 5 To converting if conditionals to ternary and backĪs well as the ability of merging multiple if statements or separating them outĪll in all, we’ve added quite a lot of context actions to deal with conditionals. Dealing with Conditionalsįrom simple if inversions of conditionals

You can now convert back and forth from decimal to hexadecimal, to octal, all with a single Alt+Enter action. In fact, we added 30+ new context actions in ReSharper 7 Converting numbers to different formats

With ReSharper 7, we have placed a lot of effort in trying to analyze code and offer a series of context actions, be it quick fixes or refactoring. Not having a compiler as a safety net to detect some problems has it’s downside. One of the biggest issues when writing JavaScript code, or any kind of dynamic code in general, is the potential mistakes that can lead to runtime errors. ReSharper 7 greatly enhances JavaScript support by adding more analysis, quick fixes, code completion, as well as support for Jasmine and PhantomJS unit test runners.
