Is there any trick to know when a line is longer t...
# intellij
w
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
I am using detekt IDEA plugin, it the line is longer, it is highlighted in yellow
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
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
yes that would be an interesting feature, maybe file a youtrack?
w
k
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)