Can Resharper add a semicolon to my javascript function declaration?

437 Views Asked by At

Using Visual Studio 2012, Resharper 7.0.1

If I'm editing JavaScript, and I type the following (| = cursor position):

this.myFunction = function() {|

.. Resharper will add the closing brace for me:

this.myFunction = function() {|}

... but I want it to also add a semicolon afterwards:

this.myFunction = function() {|};
1

There are 1 best solutions below

3
On BEST ANSWER

In short - no, it cannot, at least in current versions. Similar feature exists for C# and VB and it is called Complete Statement (Ctrl-Shift-Enter), but few people use it, so adding it for JavaScript is low priority.