Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: quick fix for "possible incorrect indentation" #2834

Closed
Tracked by #15408
vivainio opened this issue Apr 11, 2017 · 0 comments
Closed
Tracked by #15408

Wishlist: quick fix for "possible incorrect indentation" #2834

vivainio opened this issue Apr 11, 2017 · 0 comments
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Feature Request
Milestone

Comments

@vivainio
Copy link

vivainio commented Apr 11, 2017

Repro steps

Have this code:

    let foo = match [1] with
    | _ -> ()

You get squigglies for |, with the tip:

Possible incorrect indentation: this token is offside of context started at position (119:15). Try indenting this token further or using standard formatting conventions."

We could have an autofix to indent this correctly, yielding code:

    let foo = match [1] with
              | _ -> ()

As a bonus, pressing "tab" on the second line could stop at the minimum correct indentation. Currently,
you need to press space N times to hit the exact spot.

@cartermp cartermp added this to the Unknown milestone Aug 25, 2018
@dsyme dsyme added Area-LangService-CodeFixes Code fixes associated with diagnostics and removed Area-LangService-API labels Apr 5, 2022
@dsyme dsyme changed the title Wishlist: autofix for "possible incorrect indentation" Wishlist: quick fix for "possible incorrect indentation" Apr 5, 2022
@psfinaki psfinaki mentioned this issue Jun 15, 2023
85 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Feature Request
Projects
Archived in project
Development

No branches or pull requests

4 participants