Skip to content

Format on type with brackets in conditional statements removes empty space #1780

@DonJayamanne

Description

@DonJayamanne

if (True): changes to if(True):

Yes, that's non-pythonic code, but here's a better example:

x = [(1,1), (2,2)]
if (1,1) in x:        
    print("yay")

Changes to:

x = [(1,1), (2,2)]
if(1,1) in x:        
    print("yay")

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