Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Feature: Improve indenting of multiline comments [1576]

$
0
0
And incorrectly indents things that follow them.

Begin with
```js
{
/*
* foo
* bar
**/
baz
}
```
Insert an opening curly brace on a new line before the comment, and a closing one on a new line after the comment. The latter will trigger reformatting, and the result is:
```js
{
/*
* foo
* bar
**/
baz;
}
```
Best Result would be:
```js
{
/*
* foo
* bar
**/
baz;
}
```

Viewing all articles
Browse latest Browse all 4630


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>