Is there any trick to know when a line is longer than the column limit, when hints are enabled? Right now the text may appear well beyond the column limit indicator, but in reality be much shorter
j
Javier
09/30/2021, 11:24 AM
I am using detekt IDEA plugin, it the line is longer, it is highlighted in yellow
Javier
09/30/2021, 11:24 AM
but I only recommend it if you are using detekt, if not you will see more issues and you will get a lot of noise
w
wasyl
09/30/2021, 11:28 AM
Nice, thanks 🙂 I’d be nice to have something built-in if possible, though. Right now I just go to end of that line and inspect column number in the status bar on the bottom, but that takes couple of keystrokes
c
christophsturm
09/30/2021, 12:12 PM
yes that would be an interesting feature, maybe file a youtrack?
If you go to Settings -> Editor -> Code Style -> Kotlin -> Set from... and choose "Kotlin Style Guide", you will get the Kotlin recommended line length warning (grey squiggle on the offending line with an offer to reformat the file)