1

I need help in configuring Android Studio so that the code that I write does not go beyond the window and I don't have to scroll horizontally to see it? (The code should go to the next line while still in continuation)

This is what I mean to say ...

enter image description here

I have seen a question similar to this on the site but the wrapping and braces setting were not present for Flutter (there was no option for flutter) or Dart (there's nothing there except for dartfmt).

insaan
  • 29
  • 1
  • 8
  • It's called Soft Wrap. https://stackoverflow.com/a/21405348/783119 or https://stackoverflow.com/a/6649137/783119 – LazyOne Jul 05 '20 at 22:43
  • Ah, okay. Should I just change the title to the one that you added in the edit? – insaan Jul 06 '20 at 08:06

1 Answers1

3

"File>Settings>Editor>General" tab and under soft wrap section check softwrap option and click on apply enter image description here

if you want arrow indicators then uncheck the option "show soft wrap indicators for current line only" then click on apply.

Niteesh
  • 2,742
  • 3
  • 12
  • 33