0

有没有人在 VScode 中遇到过以 # 开头的行被分成两行的问题?

我正在编写一个 csx dotnet-script 程序,并且 nuget 引用定义为:

#r "nuget: YamlDotNet, 8.1.2"

但是在保存时,它被分成...

#
r "nuget: YamlDotNet, 8.1.2"

这以前没有发生过......这是新的行为......而且它是错误的......非常错误......

知道这可能是什么设置,以便我可以将其关闭吗?

4

1 回答 1

0

Ok, so I figured out this is coming from the "C# FixFormat" extension (V0.0.81) And there is actually a "C# FixFormat Fixed" extension (V0.0.85) which is fork from the original and doesn't seem to have this problem. I hope this might help someone... and save you an hour...

于 2020-07-20T17:08:25.163 回答