-1

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() {|};
Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
dbruning
  • 5,042
  • 5
  • 34
  • 35

1 Answers1

2

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.

Dmitry Osinovskiy
  • 9,999
  • 1
  • 47
  • 38
  • This is a real shame thou. I only learned of `Complete Statement` a few days ago when watching one of JetBrains ReSharper screencasts, and was eager to try it out. Was sad that it didn't work as expected for JavaScript, which is where I do most of my coding these AJAX-days... Will try to find a relevant feature request and vote. – Dav Mar 01 '13 at 12:24
  • 1
    In case someone wanted to vote the feature request/issue: http://youtrack.jetbrains.com/issue/RSRP-339369 – Dav Mar 01 '13 at 12:47
  • I can't see how "few people use it" could be accurate, seems like this is something more people could use. – Tim Meers Jun 12 '13 at 14:24