Skip to content

Indentation for chained method callsΒ #282

Open
@abhijat

Description

@abhijat

Sublime Text Version

Sublime Text 3 (Build 3176)

Rust Enhanced Version

2.11.0

Operating system

Microsoft Windows 10

Expected behavior

When composing a chained method call, I want the lines starting with a dot to be indented with some space:

path.to_str()
    .unwrap()
    .to_owned();

Actual behavior

Chained method calls are actually set to the same level of indentation as the first line of code:

path.to_str()
.unwrap()
.to_owned();

If I insert the spaces manually they are gone if I reindent the file.

Steps to reproduce

  1. Open a rust file
  2. Enter some rust code with chained method calls

References

Are there any other GitHub issues (open or closed) that should be linked here?
No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sublimeArea: Sublime interaction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions