How to make word wrap in android studio by default
Asked Answered
B

9

54

When I write something on the android studio, the line goes on over the right screen. How do I turn on word soft wrap in android studio?

enter image description here

Begum answered 10/3, 2019 at 10:45 Comment(0)
P
72

If you are on mac and want to soft wrap just the current active Editor, here is how to do it: - On the menu bar View -> Active Editor -> Soft-Wrap

Papal answered 25/1, 2020 at 5:17 Comment(3)
Worked for Windows 10 too.Sizeable
This is not. Other answers point to Settings. This answer provides the quickest and simplest solution.Kernite
The question is about changing the default setting, not about enabling it for active editorZoba
B
34

Please goto "File->Settings->Editor->General" tab and check "Use soft wraps in editor". it will solve your problem.

Updates: As @ThePartyTurtle mentioned on the comment some versions of Android Studio specifically from v3.5.3 This option is available via

Android Studio->Preferences...->Editor->General

enter image description here

Brachio answered 10/3, 2019 at 10:58 Comment(2)
An update to this answer: In my instance of Android Studio v3.5.3, you can now find "Soft Wraps" settings via "Android Studio"->"Preferences..."->"Editor"->"General".Enrollee
Thanks @ThePartyTurtle, I updated my answer to include what you mentioned on the comment.Papal
A
8

File>Settings>Editor>General enter image description here

Aminoplast answered 4/1, 2022 at 7:18 Comment(0)
B
7

You go to Android Studio > Preferences > Editor > General > Soft Wraps

then you have to indicate what type of documents you want the soft wrap to be applied on. Be sure to separate each type with a semicolon.

example: *.md; *.txt; *.rst; *.adoc; *.dart; *.plist;

Image that complements the explanation of the menus

Boutte answered 6/11, 2020 at 21:8 Comment(1)
"Be sure to separate each type with a semicolon" FTW :)Psychro
U
6

Here's my 2 cents:

A quick way to toggle word-wraps:

Ctrl + Shit + A : (opens a search window with "Actions" tab enabled.)

Type Soft wrap

Press enter on the first search-result: View | Active Editor Soft-wrap

enter image description here

Cheers 🍻

Ubana answered 27/5, 2022 at 13:38 Comment(0)
W
5
  1. File > Settings > General
  2. Tick the "Soft-wrap these files:" checkbox, and write *.*
  3. Apply > OK
Weintraub answered 4/9, 2021 at 18:55 Comment(2)
For Android Studio 4.x. Thanks!Jaan
This is a duplicate answer.Lietuva
W
4

If u want to use soft wrap by default go through the following steps

step-1 : Click on view ( in Navigation bar )
step-2 : Choose Active Editor
step-3 : Click on Soft wrap

that's it ...

Wilburnwilburt answered 12/6, 2021 at 11:58 Comment(1)
This is a duplicate answer.Lietuva
S
3

Android Studio Arctic Fox Solution

From the menu:
File > Settings > General
Tick the Soft-wrap these files checkbox.

Settings in Android Studio Arctic Fox

Sizeable answered 21/8, 2021 at 9:33 Comment(0)
R
0

If you are on mac: Android Studio -> Preferences -> Editor -> General -> Soft-wrap these files

If you are on Windows : Settings > Editor > General > Soft-wrap these files

To enable Soft-wrap, write the following code in the box in front of the checkbox

  1. *.* to wrap all the files in the editor
  2. *.<extension_of_file> to wrap files with specific extension an separated by semicolon
Revest answered 20/9, 2021 at 12:27 Comment(1)
This is a duplicate answer.Lietuva

© 2022 - 2024 — McMap. All rights reserved.