Skip to content

formatOnType removes spaces between if and opening parentheses #1791

Closed

Description

if (this_is_one_thing and that_is_another_thing):
   pass

becomes:

if(this_is_one_thing and that_is_another_thing):
   pass

This breaks syntax.

Activity

  1. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor

    This typically comes up when the statement spans lines, e.g.

    if (this and
        that):
      pass
  2. MikhailArkhipov commented on May 29, 2018

    @MikhailArkhipov

    Same as #1780

  3. 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

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions