line length limit format

Answered

Hi,

Is there a way so that when Code (menu) -> Reformat Code... command is used, all the lines are automatically trimmed down to the specified length and the remaining code is moved to next line? Thanks

The right margin for editing windows was set in the the Code Style section.

3 comments
Comment actions Permalink

Are you formatting java code? Check Settings/Preferences | Code Style | Java | Wrapping and Braces tab. Check 'Ensure right margin is not exceeded' and look through other options if needed.

2
Comment actions Permalink

do you know of any thing like this for kotlin, I can manually change the various options from do not wrap to wrap if long but I cannot get everything covered there.

0
Comment actions Permalink

Please use https://discuss.kotlinlang.org/ for any questions related to Kotlin.

-1

Please sign in to leave a comment.