Kaloyan Roussev
Kaloyan Roussev

Reputation: 14711

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.

Upvotes: 0

Views: 655

Answers (2)

Amit Vaghela
Amit Vaghela

Reputation: 22965

In Android studio go to

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

Upvotes: 2

user1785730
user1785730

Reputation: 3567

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

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

Upvotes: 0

Related Questions