以下代码在每个let
(“可能不正确的缩进”)上触发格式警告:
module UtilTests =
[<Test>] let simpleWithNth ()= true |> should be True
[<Test>] let negIndex () = true |> should be True
[<Test>] let tooBigIndex () = true |> should be True
[<Test>] let lastIndex () = true |> should be True
以下没有:
module UtilTests =
[<Test>] let simpleWithNth ()= true |> should be True
[<Test>] let negIndex () = true |> should be True
[<Test>] let tooBigIndex () = true |> should be True
[<Test>] let lastIndex () = true |> should be True
为什么它希望每个let
都比它上面的缩进更多?(有没有办法让 Visual Studio 2012 自动格式化?)