line length limit format

已回答

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.

0

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
Avatar
Permanently deleted user

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

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

-1

请先登录再写评论。