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?
Please sign in to leave a comment.
No, there is no such an option currently but there is a feature request for that: http://youtrack.jetbrains.com/issue/WI-11886
You may vote for it. Thank you!