David
David

Reputation: 1061

Space between "function" and parenthesis in VS JS editor

Why does Visual Studio JavaScript editor put a space between the "function" keyword and its following parenthesis ?

function foo () { }

Is that some kind of cool convention ?

Upvotes: 1

Views: 796

Answers (1)

noel
noel

Reputation: 2145

It is a stylistic convention in Visual Studio. In the past you could not change it, but you might find now you can: "Options -> Text Editor -> JScript -> Formatting"

Most refer the lack of space to Douglas Crockford's javascript style guide

Upvotes: 1

Related Questions