The default code formatting for JavaScript in Visual Studio 2012 does this with for
loops:
for (var a = b; a < c; a++)
{
}
for (var a = b() ; a < c; a++)
{
}
for (var a = b; a < c() ; a++)
{
}
for (var a = (b) ; a < (c) ; a++)
{
}
Notice the spaces after b()
, c()
, (b)
, and (c)
.
Where is the option to remove those spaces, or does VS just have a phobia of frowning winky faces?
);
Tools > Options > Text Editor > JavaScript > Formatting > Spacing
lets you disable this. Seems like it is baked in and there is no setting for it (yet). – Mongo