How to get VS2012 to automatically format Javascript comment blocks, such as C # comments

I am trying to get Visual Studio 2012 to automatically format my comment blocks, as is the case for my C # blocks. I want my comments to look like this:

/* * Here is my C# comment block * As I type, more [space]*[space] chars are prefixed to every new line */ 

But instead, I get the following:

 /* Here is my javascript comment block Where are my asterisks? :( */ 

To make matters worse, I cannot define this behavior in Tools> Options> Text Editor> Javascript. I have a Web Essentials extension, but it does not automatically format my comment blocks. I also tried editing on the HTML <script> node page, but it does not work either.

Any help is greatly appreciated.

+4
source share
1 answer

How to write a new fragment file? Here is the website, but it is in Chinese. How to create a new file fragment in Visual Studio

0
source

All Articles