Menu

#561 Function call padding

open
nobody
padding (3)
2024-02-14
2024-02-13
Max Yaffe
No

This is not a bug, but a question.
Is there a way to remove spaces between a function call and its parameter list? I saw unpad-paren but would like to keep the space after control flow operators like “if (true)”

Discussion

  • w-peuker

    w-peuker - 2024-02-14

    To illustrate your question, if you wish to change

    if (c) {
        foo (a, b);
    }
    

    into

    if (c) {
        foo(a, b);
    }
    

    This is possible by using both, pad-header and unpad-paren.

    If you meant something else, please explain in more detail. Thanks a lot!

     

    Last edit: w-peuker 2024-02-14
  • Max Yaffe

    Max Yaffe - 2024-02-14

    Thanks, I'll give that a try.
    Max

     

Log in to post a comment.

MongoDB Logo MongoDB