Skip to content

formatOnType strips spacing around = for comma-trailing statements #1787

Closed

Description

b = {a: b, c: d,
}

becomes:

b={a: b, c: d,
}

Activity

  1. changed the title [-]formatOnType strips spacing around `=` for multi-line dicts[/-] [+]formatOnType strips spacing around `=` for comma-trailing statements[/+] on May 29, 2018
  2. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor
    a = 1,

    becomes:

    a=1,
  3. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor
    d= 1, b, c,

    becomes:

    d=1, b, c,
  4. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor
    foo = long_function_name(var_one, var_two,
    )

    becomes:

    foo=long_function_name(var_one, var_two,
    )
  5. MikhailArkhipov commented on May 30, 2018

    @MikhailArkhipov

    Yep since they look like

    foo(a,
    b=1,c,
    d)
    
  6. locked as resolved and limited conversation to collaborators on Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions