Search code examples
androidandroid-layoutandroid-studiosettingsandroid-preferences

Disable the line limit wrap when Code Format is selected


Recently I set my line length limit to 100 or 120 and I also enabled an option that will wrap the code that exceeded those limits to the next line, whenever I clicked Code Format.

Now I want to disable that wrap and do it manually, but I don't know where that setting was.


Solution

  • In Android studio go to

    Preferences > Editor > Code Style > Java > Wrapping and Braces > Keep when reformatting and uncheck the checkbox Line Breaks