在我的Phoenix应用程序中,我有以下代码:
attrs = %{"name" => "mat", "color" => "blue"}
conn = post(conn, Routes.session_path(conn, :create), player: attrs)
expected_player = %Player{name: "mat", color: "blue"}
问题是,当我运行mix.format
任务时,它会将其更新为以下内容:
attrs = %{"name" => "mat", "color" => "blue"}
conn = post(conn, Routes.session_path(conn, :create), player: attrs)
expected_player = %Player{name: "mat", color: "blue"}
这对我来说可读性较差。有什么方法可以配置混合格式化程序以不删除我的缩进?