Visual Studio 2013 JavaScript/TypeScript odd indenting behavior -


There is a problem with the automatic indentation of code while working on my typecript code.

Examples of promises for example:

  someService.GetSomeProperties (). Then (x = & gt; {Return to another service} SoftwingWithX (x.map (y => y.id))}}). Then pressing (x = & gt; {// right) sets the cursor in this position // Using the document format (CTRL + K, CTRL + D) code goes back to this level of return '';}) . Then (x = & gt; {enter the press from here // moves the previous row to its position and the cursor returns here 'a';}). Then (x = & gt; {// this document block is also known as this indented level //}). Then (x = & gt; {// follow-up chaining remains the same});   

Based on the 'symptom', this behavior is normally coming from multi-line statements.

I have both VS 2013 option and R #

Do anyone know how to fix this?