You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open or create an F# project, a console application will do. Ensure the Re-format indentation on paste option is enables in the F# settings of the text editor.
Cut or copy 2 or more lines of indented code, say from inside a function. Then paste anywhere, including back over the still selected region that was copied. All indentation is removed.
Turning off the F# Re-format indentation on paste option leave the indentation intact but of course doesn't then indent it correctly for the new location where it is pasted either.
Visual Studio Feedback System on 2/21/2019, 11:53 PM (3 days ago):
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.
--
David on 2/22/2019, 04:24 AM (3 days ago):
Further clarification on how to reproduce this:
Drag select the lines from the left of the text editor (on the line numbers if enabled). Ctrl+C to copy the current line without a selection or selecting a portion of text starting part way across a line doesn't exhibit this behaviour, it must be whole lines that are selected.
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered:
The caret position is now critical to determining what indentation you end up with. If you just cut some lines and paste directly back again the caret is left aligned for the paste. Now I know what it is doing it looks like it is a good feature and not a bug!
Formatting edited by @cartermp
Open or create an F# project, a console application will do. Ensure the Re-format indentation on paste option is enables in the F# settings of the text editor.
Cut or copy 2 or more lines of indented code, say from inside a function. Then paste anywhere, including back over the still selected region that was copied. All indentation is removed.
Turning off the F# Re-format indentation on paste option leave the indentation intact but of course doesn't then indent it correctly for the new location where it is pasted either.
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/465378/vs-2019-preview-30-f-re-format-indentation-on-past.html
VSTS ticketId: 797946
These are the original issue comments:
Visual Studio Feedback System on 2/21/2019, 11:53 PM (3 days ago):
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.
--
David on 2/22/2019, 04:24 AM (3 days ago):
Further clarification on how to reproduce this:
Drag select the lines from the left of the text editor (on the line numbers if enabled). Ctrl+C to copy the current line without a selection or selecting a portion of text starting part way across a line doesn't exhibit this behaviour, it must be whole lines that are selected.
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: