Hi!
I was wondering if there are any recommended formatter settings in conjunction with kotest. when using the standard kotlin formatter settings from intellij there is really much whitespace in front of all lines...
s
sam
04/18/2022, 9:34 AM
This is because it's nested right? You could try using the inline constructor style to save an indentation level
t
thana
04/18/2022, 9:36 AM
its not just one level of indentation. for me, intellij always end up with this"
Must be some odd setting in your intellij formatting rules
sam
04/18/2022, 9:49 AM
I get this:
Copy code
class ThreadCountCacheTest : FunSpec({
test("get and set thread counts") {
}
})
sam
04/18/2022, 9:51 AM
These are my settings for wrapping and braces
t
thana
04/18/2022, 9:52 AM
i guess its the "keep linebreak when reformatting". this whole think is arguably a intellij problem because you cannot configure how constructor calls should be formatted, it seems 😕
thana
04/18/2022, 9:55 AM
oh and i just found out, that using named arguments the formatting looks way better. lol