https://kotlinlang.org logo
#ktlint
Title
# ktlint
j

Joakim

10/18/2023, 8:00 AM
I’ve not followed the discussion in here that throughly. We have a semi-large project we recently updated to ktlint 1.0.1 (from 0.4.x). Formatting with ktlint formats it like this:
Copy code
class SomeClass
    @Inject
    constructor(
Formatting with the IDE (even after applying the generated ktlint editorconfig rules) gives this:
Copy code
class SomeClass
@Inject
constructor(
The second one also indents all lines after it, since the IDE considers all lines after to be 4 spaces instead of 8 as ktlint does. Is the idea now to not rely on the IDE formatter? And in that case any tips on how the workflow should be instead while developing?