Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,scalafmt 将像这样重新格式化代码
myList(elem => elem .doThing .doOtherThing )
看起来像这样
myList( elem => elem .doThing .doOtherThing )
如何将其配置为将匿名函数参数保留在同一行?请注意,如果您使用大括号而不是括号,它已经这样做了。