[2109] JavaScript style option

Hi,

ReSharper 6's options for formatting JavaScript are pretty good, but there's one area where they don't fit my coding style.

Named functions I declare like:
function FunctionName(param1, ...

Anonymous functions I declare like:
function (param1, ...

If I have it do the first the way I like, then ReSharper seems to want to write the second like:
function(param1, ...

Could there be an option added for spacing in anonymous functions?

Thanks.

1 comment

Hello Anthony,

Thank you for suggestion! I've created a feature request: http://youtrack.jetbrains.net/issue/RSRP-233164
and you're welcome to vote for it.

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

ReSharper 6's options for formatting JavaScript are pretty good, but
there's one area where they don't fit my coding style.

Named functions I declare like:

function FunctionName(param1, ...

Anonymous functions I declare like:
function (param1, ...
If I have it do the first the way I like, then ReSharper seems to want
to write the second like: function(param1, ...



0

Please sign in to leave a comment.