dotnet / dotnet/fsharp

Issues with FormatOnPaste into Visual F# editor

Open
#12,158 12 comments 1 reaction 0 assignees View on GitHub
AI-thinks-windows-only Area-VS-Editor Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Issues-with-F-indentation/1523021)._

---
[severity:It's more difficult to complete my work]
This is similar to https://developercommunity2.visualstudio.com/t/Problem-with-indentation-in-F/719085?entry=problem&ref=native&refTime=1630938135591&refUserId=a2d84250-89b4-6645-9bad-35b10b01efbb but that is marked closed, and this is in the latest daily's

* If you cut a line with Ctl-L and then paste with Ctl-V, the line loses it's indentation (it is incorrectly flush with the left margin)
* If you add an "open" line via Ctl-. it is not indented correctly (it is incorrectly flush with the left margin)

Because F# is a indentation oriented language, this is not a minor formatting issue but a major issue that causes errors that must be manually fixed, and there is no adequate Ctl-K-D to fix it all up for you.

---
### Original Comments

#### Feedback Bot on 9/7/2021, 00:27 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.