Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

How to disable automatic line breaks in formatter? #416

@ghost

Description

When I write this and save:

    let board = stdin.lock().lines().map(|r| r.unwrap()).take(3).collect::<String>();

It is automatically formatted like this:

    let board = stdin
        .lock()
        .lines()
        .map(|r| r.unwrap())
        .take(3)
        .collect::<String>();

Is there a way to prevent this or at least increase the line length where it begins (75) without disabling autoformatting completely? I've tried changing standard vs code settings for wrapping and rulers but it doesn't affect rls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions