How to format Javascript?

I prefer to format in node.js as follows:

var express = require('express')
  , http = require('http')
  , path = require('path');

Is there a setting / configuration where I can define that "var" layout of the next line having two spaces followed by the comma as above?
1 comment
Comment actions Permalink

No, there is no such an option currently but there is a feature request for that:
You may vote for it. Thank you!


Please sign in to leave a comment.