Search code examples
android-studio

Android studio - wrap in container


Is there an equivalent feature in Android studio like Eclipse for "wrap in container"?

enter image description here


Solution

  • UPDATE(2021): Currently, Android studio support wrap in content and you can follow this answer: https://stackoverflow.com/a/59217255/1105277

    Original Answer(2016): You can use soft wrap, first solution is right click on the left of line where show line numbers and check Use Soft Wraps.

    enter image description here

    Another way is set it from:

    File > Settings > Editor > General > Use soft wraps in editor

    Also You can set Right margin for your editor from :

    File > Settings > Editor > Code Style > Right margin (columns)