HookyQR / VSCodeBeautify

Enable js-beautify (https://github.com/beautify-web/js-beautify) in VS Code
MIT License
607 stars 178 forks source link

I can not find option for space before call parentheses #398

Open dotnetCarpenter opened 3 years ago

dotnetCarpenter commented 3 years ago

Provide the settings you use:

.jsbeautifyrc

{
    "js": {
        "space_after_anon_function": true,
        "keep_function_indentation": true
    }
}

Expected results

Hmm.. well since I can not find the option, the result is not surprising. What is it called and does it even exist?

const read2 = cb => S.ifElse (isGif)
  (parseGif2 (cb))
  (S.ifElse (isPng)
            (parsePng2 (cb))
            (S.K (new Error ('Image format is not recognized or supported'))))

Actual results

const read2 = cb => S.ifElse(isGif)
    (parseGif2(cb))
    (S.ifElse(isPng)
        (parsePng2(cb))
        (S.K(new Error('Image format is not recognized or supported'))))

Adding space before calling parentheses is very common in the Sanctuary ecosystem.