gpt4 book ai didi

visual-studio - 为什么 Visual Studio 2019 在剪切和粘贴 F# 代码时会删除我的缩进?

转载 作者:行者123 更新时间:2023-12-04 14:53:42 25 4
gpt4 key购买 nike

在带有 Microsoft Visual F# Tools 10.4 for F# 4.6 的 Visual Studio 2019 中,我看到了意外的剪切和粘贴行为。如果我剪切了 F# 代码块,然后将其粘贴到文件中的其他位置,则代码块不再缩进到同一级别。

enter image description here

最佳答案

这是一个功能,而不是一个错误。

...a feature that intelligently indents pasted code based on where your cursor is.
from https://devblogs.microsoft.com/dotnet/announcing-f-4-6/



要启用或禁用此功能,请查看 工具 > 选项 > 文本编辑器 > F# > 格式化 > 粘贴时重新格式化缩进 .

关于visual-studio - 为什么 Visual Studio 2019 在剪切和粘贴 F# 代码时会删除我的缩进?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57914165/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com