Wishlist: quick fix for "possible incorrect indentation"
Open
Area-LangService-CodeFixes
Feature Request
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
#### Repro steps
Have this code:
```fsharp
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:
```fsharp
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.
Contributor guide
Assessment
This issue has not been assessed yet.