0

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.

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180

2 Answers2

2

In Android studio go to

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

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
0

Go to File->Settings->Editor->Code Style

There you'll find the two options "Right margin (columns)" and "Wrap when typing reaches right margin".

user1785730
  • 3,150
  • 4
  • 27
  • 50